#mainContent .c-container,
#mainContent .c-container--sml {
  width: 100%;
  max-width: 1080px;
  position: relative;
  margin: auto !important;
}

#mainContent > article > div:nth-child(1) {
  z-index: 15 !important;
}

#mainContent .bottom-row .i-builder-two-column-layout__columns {
  align-items: flex-start; /* Crucial for sticky within flexbox */
}

#mainContent .bottom-row {
  margin-top: -20px !important;
}

#mainContent .bottom-row .i-builder-two-column-layout__column--left h3 {
  font-weight: normal;
  font-family: "Open Sans", Arial, sans-serif !important;
  color: #333;
  padding-bottom: 10px;
  line-height: 1em;
  font-weight: 500;
  font-size: 20px;
}

#mainContent .bottom-row .i-builder-two-column-layout__column--left {
  position: sticky !important;
  top: 198px !important; /* Adjust this value to match the top of sticky-item-2 */
  height: calc(100vh - 210px); /* Set a max height */
  overflow-y: auto; /* Allow scrolling within the sidebar if it's too tall */
  width: 20.875% !important;
  margin-right: 5.5% !important;
  background-color: #ffffff !important;
  padding-top: 10px !important;
  padding-bottom: 5px !important;
  flex: 0 0 20.875% !important;
}

#mainContent .bottom-row .i-builder-html-code .inline-facets {
  margin-top: 8px !important;
}

#sticky-item-2 > div.inline-facets {
  padding-top: 10px !important;
}

#mainContent .bottom-row .i-builder-html-code .inline-facets,
#mainContent .bottom-row .i-builder-html-code .facets-pager {
  text-align: right !important;
}

#mainContent .bottom-row .inline-facets .facetwp-counts p,
#mainContent .bottom-row .facetwp-pager p {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: normal;
  line-height: initial;
  color: #666;
}

#mainContent .bottom-row .messages-display-table .hidden-heading {
  display: none !important;
}

#mainContent .bottom-row .messages-display-table {
  margin: 0 0 15px;
  text-align: left;
}

#mainContent .bottom-row .messages-display-table .messages-heading-row {
  text-align: left;
}

#mainContent .bottom-row .messages-display-table .expired {
  color: #ff0000;
  font-weight: 700;
  font-size: 14px;
  font-family: "Open Sans", Arial, sans-serif;
}

#mainContent .bottom-row .messages-display-table .messages-heading-row .messages-heading-dashicon {
  color: #555;
  font-weight: 700;
  width: 4%;
  padding: 8px 4px !important;
  vertical-align: text-top;
}

#mainContent .bottom-row .messages-display-table .messages-heading-row .messages-heading-title {
  color: #555;
  font-weight: 700;
  width: 69%;
  padding: 8px 12px !important;
  vertical-align: top;
}

#mainContent .bottom-row .messages-display-table .messages-heading-row .messages-heading-posted {
  color: #555;
  font-weight: 700;
  width: 27%;
  padding: 8px 6px !important;
  vertical-align: top;
}

/* Messages Row */
#mainContent .bottom-row .messages-display-table .messages-row .messages-dashicon {
  color: #555;
  font-weight: 700;
  width: 4%;
  padding: 8px 4px !important;
  vertical-align: text-top;
}

#mainContent .bottom-row .messages-display-table .messages-row .messages-dashicon .dashicons-pinned {
  color: #f3b332;
}

#mainContent .bottom-row .messages-display-table .messages-row .messages-dashicon .sentence-dashicon {
  padding-top: 5px;
  padding-right: 11px;
}

#mainContent .bottom-row .messages-display-table .messages-row .messages-title {
  color: #555;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  width: 69%;
  padding: 8px 12px !important;
  vertical-align: text-top;
}

#mainContent .bottom-row .messages-display-table .messages-row .messages-title a {
  color: #2ea3f2;
  line-height: 1.7em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

#mainContent .bottom-row .messages-display-table .messages-row .messages-posted {
  width: 27%;
  padding: 8px 6px !important;
  vertical-align: top;
  color: #666;
  background-color: #fff;
  line-height: 1.7em;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 400;
}

/* Make the table header sticky below the pagination/sort section */
/* JavaScript stickybits will add inline styles, but we ensure proper styling here */
#sticky-item-2 {
  z-index: 10;
}

table.messages-display-table {
  background-color: white !important;
  z-index: 8 !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
  width: 100% !important;
}

/* Fallback if JavaScript doesn't load - use native sticky */
table.messages-display-table:not([style*="position: sticky"]) {
  position: sticky !important;
  top: 270px !important;
}

/* Style the thead within the sticky table */
.messages-display-table thead {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #eee;
}

/* Ensure the sticky header table is on top */
#sticky-item-3 {
  z-index: 9 !important;
}

/* Ensure the content table scrolls underneath the sticky header */
.messages-display-table + .messages-display-table {
  position: relative; /* Required for z-index to take effect */
  z-index: 1 !important;
}

/* Remove top margin from the second table to connect with sticky header */
.messages-display-table + .messages-display-table {
  margin-top: 0 !important;
}

#mainContent .i-builder-two-column-layout__column--right .i-builder-html-code:first-of-type {
  /* Your styles for the first .i-builder-html-code element */
  width: 795.148px;
  position: sticky;
  top: 198px;
  background-color: #fff;
  z-index: 12;
}

#mainContent .i-builder-two-column-layout__column--right #sticky-item-3 {
  background: #fff !important;
  z-index: 11000;
  width: 795.148px;
  position: sticky;
  top: 339.094px;
}

#mainContent > article > .bottom-row .i-builder-two-column-layout__column--left button {
  margin-bottom: 30px !important;
}

/*  */
@media only screen and (max-width: 1270px) {
  #mainContent > article > div:nth-child(1) {
    position: relative !important;
    top: unset !important;
  }
  #mainContent .bottom-row {
    margin-top: -40px !important;
    margin-bottom: 60px !important;
  }
  #mainContent .bottom-row .facetwp-pager {
    margin-top: 17px !important;
  }
  #mainContent .i-builder-two-column-layout__column--right .i-builder-html-code:first-of-type {
    position: relative;
    top: unset !important;
    background-color: unset !important;
    width: unset !important;
  }
  /* --- Ensure columns take full width on mobile --- */
  #mainContent .bottom-row .i-builder-two-column-layout__column--left,
  #mainContent .bottom-row .i-builder-two-column-layout__column--right {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  /* Layout Adjustments */
  #mainContent .bottom-row .i-builder-two-column-layout__columns {
    flex-direction: column; /* This is the correct property for flexbox */
    gap: 2rem;
  }
  /* Disable sticky sidebar on mobile */
  #mainContent .bottom-row .i-builder-two-column-layout__column--left {
    position: static !important;
    height: auto !important;
    overflow-y: visible;
    width: 100% !important;
  }
  .i-builder-two-column-layout__columns {
    grid-template-columns: 1fr !important;
  }
  #mainContent .bottom-row .messages-display-table:first-of-type {
    position: relative !important;
    top: unset !important;
  }
  #mainContent .c-container {
    max-width: 1080px !important;
    position: relative !important;
    margin: auto !important;
    width: 100% !important;
    padding-left: 3% !important;
    padding-right: 3% !important;
  }
  #mainContent .c-container--sml {
    width: 100% !important;
    background-color: yellow !important;
  }
  #mainContent > article > div:nth-child(2) h2 {
    font-size: 29px !important;
  }
  #mainContent > article > div:nth-child(2) > div > div {
    padding-bottom: 20px !important;
  }
  #mainContent .top-section .i-builder-two-column-layout__column--right {
    display: none !important;
  }
  /* Header becomes static on mobile */
  #mainContent > article > div:nth-child(2) {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    padding: 0px !important;
    max-height: fit-content !important;
    width: auto !important;
  }
  /* Disable sticky pagination on mobile */
  #mainContent > article > div.i-builder-full-width-row.bottom-row > div > div > div > div > div.i-builder-two-column-layout__column.i-builder-two-column-layout__column--right > div:nth-child(1) {
    position: static !important;
    top: auto !important;
  }
  /* Hide table header row on mobile */
  #mainContent .bottom-row .messages-heading-row {
    display: none !important;
  }
  #mainContent .bottom-row .i-builder-html-code .facets-pager {
    padding-bottom: 23px !important;
  }
  /* --- Card Layout for Messages --- */
  /* Convert table to block display */
  #mainContent .bottom-row .messages-display-table {
    display: block !important;
    width: 100% !important;
    border: none;
    padding-top: 16px !important;
  }
  #mainContent .bottom-row .messages-display-table tbody {
    display: block !important;
  }
  /* Style each message row as a distinct card */
  #mainContent .bottom-row .messages-display-table .messages-row {
    display: flex !important;
    flex-direction: column;
    align-items: center; /* Center the label-value pairs horizontally */
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 2px 0 !important;
  }
  /* Reorder card content */
  /* First dashicon (type icon) - centered at top */
  #mainContent .bottom-row .messages-display-table .messages-row .messages-dashicon:first-child {
    order: 1;
    text-align: center;
    padding: 0 0 12px 0 !important;
    width: 100%;
  }
  #mainContent .bottom-row .messages-display-table .messages-row .messages-title {
    order: 2;
  }
  #mainContent .bottom-row .messages-display-table .messages-row .messages-posted {
    order: 3;
  }
  #mainContent .bottom-row .messages-display-table .messages-row .messages-dashicon:last-child {
    order: 4;
    text-align: center;
    padding-top: 12px !important;
    width: 100%;
  }
  /* General icon styles */
  #mainContent .bottom-row .messages-display-table .messages-row .messages-dashicon {
    display: block !important;
    width: auto !important;
  }
  /* ============================================
     LABEL-VALUE PAIR LAYOUT (Centered Group)
     Labels are injected via JavaScript on mobile
     - Label: right-aligned with fixed width
     - Value: left-aligned  
     - Small gap between label and value
     ============================================ */
  /* Title row - Label + Value pair */
  #mainContent .bottom-row .messages-display-table .messages-row .messages-title {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center; /* Center the label-value pair as a group */
    align-items: baseline;
    width: 100% !important;
    padding: 8px 0 !important;
    gap: 10px; /* Gap between label and value */
  }
  /* Posted date row - Label + Value pair */
  #mainContent .bottom-row .messages-display-table .messages-row .messages-posted {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center; /* Center the label-value pair as a group */
    align-items: baseline;
    width: 100% !important;
    padding: 4px 0 0 0 !important;
    gap: 10px; /* Gap between label and value */
  }
  /* ============================================
     MOBILE LABEL STYLES (JS-injected .mobile-label)
     ============================================ */
  /* IMPORTANT: Explicitly hide any ::before pseudo-elements on mobile */
  #mainContent .bottom-row .messages-display-table .messages-row .messages-title::before,
  #mainContent .bottom-row .messages-display-table .messages-row .messages-posted::before {
    content: none !important;
    display: none !important;
  }
  /* Style for JS-injected labels */
  /* Fixed width + text-align: right ensures colons align vertically */
  #mainContent .bottom-row .messages-display-table .messages-row .mobile-label {
    display: inline-block;
    font-weight: 600;
    color: #333;
    text-align: right; /* Right-align text so colons line up */
    flex-shrink: 0;
    flex-grow: 0;
    white-space: nowrap;
    width: 75px; /* Fixed width (not min-width) for vertical alignment */
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
  }
  #mainContent .bottom-row .messages-display-table .messages-row a,
  #mainContent .bottom-row .messages-display-table .mobile-value {
    width: 100% !important;
  }
  #mainContent .bottom-row .messages-display-table .mobile-label {
    margin-left: 28% !important;
    color: #666 !important;
  }
  /* Message value (link) - left aligned */
  #mainContent .bottom-row .messages-display-table .messages-row .messages-title a {
    display: inline-block;
    text-align: left;
    flex-shrink: 1;
    flex-grow: 0;
  }
  /* Make the main theme header scroll with the page on mobile */
  body #page-container,
  body #main-header {
    position: relative !important;
  }
}

/*# sourceMappingURL=messages-board.css.map */
