/* Section Background Colors */
.page-sections .page-section:nth-child(even),
.page-sections .page-section:nth-child(even) #cf-app table.cf-table-grid {
  background-color: #e1f3f8;
}

/* Section headers */
.member-content-wrapper .header,
.who-we-serve-header,
.mission-vision-goals .mission-and-vision-header,
.mission-vision-goals .goals-header,
.get-involved-header,
.yearly-calendar-header,
.media-library-header,
.press-releases-archive-header,
.special-projects-library-header {
  font-weight: 700;
  font-size: 2rem;
  line-height: 30px;
  letter-spacing: 0%;
}

.quick-links {
  padding: 50px 0;
}

.quick-links .title {
  margin-bottom: 1.5rem;
}

.quick-links ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.quick-links ul > li {
  margin-bottom: 0.5rem;
}

.quick-links ul > li > a:hover {
  text-decoration: underline;
}

.quick-links ul > li > a {
  color: var(--primary-color);
}

.get-involved {
  padding: 50px 0;
}

.get-involved h3 {
  color: #272d37;
  font-size: 30px;
  font-weight: 600;
}

.get-involved .container .row {
  margin-bottom: 0;
}

.social-media-content-container {
  margin: 1.5rem 0;
}

.social-media-container {
  display: grid;
  grid-template-columns: repeat(5, 48px);
  gap: 0.75rem;
  justify-items: start;
  margin-top: 1rem;
}

.social-media-header {
  font-weight: 700;
}

.social-media-link {
  background-color: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #dae0e6;
}

.member-column {
  text-align: center;
  padding: 40px 20px;
}

.member-container {
  margin-top: 50px;
}

.member-column .title {
  margin-bottom: 0px;
  color: #4d4d4d;
  font-weight: 700;
  padding-top: 16px;
}

.member-column > .email {
  font-size: 14px;
  font-weight: 400;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
}

.see-more {
  background: none;
  color: var(--primary-color);
  font-size: 16px;
  padding: 0;
  text-decoration: underline;
}
.see-more:hover {
  text-decoration: underline;
}

.position {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

.biography-container {
  position: relative;
}

.biography-wrapper {
  position: relative;
}

.biography.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  line-clamp: 5;
  overflow: hidden;
  margin: 0;
}

.member-title,
.yearly-calendar-content,
.media-library-content,
.press-releases-archive-content,
.special-projects-library-content {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.member-content-wrapper,
.yearly-calendar-content-wrapper,
.media-library-content-wrapper,
.press-releases-archive-content-wrapper,
.special-projects-library-content-wrapper {
  max-width: 580px;
  text-align: center;
}

.member-content-wrapper h3,
.yearly-calendar-content-wrapper h3,
.media-library-content-wrapper h3 {
  margin-bottom: 1rem;
}

.yearly-calendar-content-wrapper span,
.media-library-content-wrapper span,
.press-releases-archive-content-wrapper span,
.special-projects-library-content-wrapper span {
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.5rem;
  letter-spacing: 0;
}

.member-column img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: auto;
}

/* TODO: Move this single-member styling to another file */
/* single-member.php */

.solo-headshot {
  height: auto;
  max-width: 100%;
  width: 500px;
}

.full-member {
  margin: 90px 0;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-top-bar {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-between;
  justify-content: center;
}

.tribe-events .tribe-events-c-top-bar__datepicker {
  flex: none;
  margin: 0 20px;
}

.tribe-common.tribe-common--breakpoint-medium
  button.tribe-events-c-top-bar__datepicker-button {
  font-size: 16px;
  line-height: 17px;
  font-weight: 600;
  color: #667085;
  width: 190px;
}

.tribe-common--breakpoint-medium.tribe-events
  .tribe-events-c-top-bar__datepicker {
  margin: 0 20px;
  border: 1px solid #000;
  background: #ffffff;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: "Roboto";
  font-weight: 600;
  color: #667085;
  border-radius: 5px;
}

.tribe-common--breakpoint-medium.tribe-common .tribe-common-c-btn-border-small,
.tribe-common--breakpoint-medium.tribe-common
  a.tribe-common-c-btn-border-small {
  padding: 10px;
  width: auto;
  background: none;
  border: none;
  font-size: 16px;
  font-family: "Roboto";
  font-weight: 600;
  color: #667085;
}

.tribe-common time {
  margin-right: 40px;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.month-picker-container {
  display: none; /* Initially hidden */
  position: absolute; /* Positioned relative to its trigger button */
  width: 40%;
  height: 300px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 10; /* Make sure it's above other content */
  border-radius: 5px;
  top: 140px;
}

.month-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  height: 100px;
  margin: 0 27px !important;
  font-size: 16px;
  font-family: "Roboto";
  font-weight: 600;
}

.month-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: 169px;
  font-size: 16px;
}

.month {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-weight: 600;
  font-family: "Roboto";
  font-size: 16px;
}

.month:active,
.month:hover {
  background-color: #007bff; /* This will be the background color on hover */
  color: white; /* Change the text color to white on hover, if desired */
}

.buttons {
  text-align: center; /* Aligns the Filter and Clear buttons */
  margin-top: 20px;
}

.dropdown-container {
  margin: 20px;
  width: 200px;
}

select {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border-radius: 5px;
}

.cust_cat_selector {
  display: flex;
  flex-direction: row;
  column-gap: 20px;
}

.custom-calendar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#toggle-picker-button {
  background-color: white;
  width: 220px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #919ba7;
  font-weight: 600;
}

.custom-buttons {
  display: flex;
  align-items: center;
  justify-content: end;
  width: 100%;
  column-gap: 20px;
}

#filter_events_button {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  width: 100px;
  height: 40px;
  border-radius: 5px;
}

#clear_filters_button {
  height: 40px;
  font-weight: 600;
  color: #919ba7;
}

.bylaws-button {
  display: inline-block;
  background: var(--primary-color);
  font-size: 18px;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
}

.bylaws-button:visited {
  color: white;
}

.bylaws-button:hover {
  background: #0067a3;
  color: white;
}

.mission-vision-goals {
  padding: 50px 0;
}

.mission-vision-goals .divider {
  margin-bottom: 1rem;
}

.mission-vision-goals > div.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Target all types of header in WYSIWYG Editor */
.mission-vision-goals .goals-content-container .goals-content > h1,
.mission-vision-goals .goals-content-container .goals-content > h2,
.mission-vision-goals .goals-content-container .goals-content > h3,
.mission-vision-goals .goals-content-container .goals-content > h4,
.mission-vision-goals .goals-content-container .goals-content > h5,
.mission-vision-goals .goals-content-container .goals-content > h6 {
  color: #4d4d4d;
}

.mission-vision-goals .goals-content-container .goals-content > h4 {
  font-size: 20px;
  font-weight: 600;
}

/* Target bullet list in WYSIWYG Editor */
.mission-vision-goals .goals-content-container .goals-content > ul {
  font-size: 18px;
  margin-left: 0;
}

.who-we-serve-container {
  padding: 50px 0;
}

.who-we-serve-container img {
  width: 500px;
}

.line-break-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.line-break-container > .line {
  border: 1px solid #999;
  width: 100%;
  height: 2px;
}

.line-break-container > .line:first-child {
  margin-right: 0.5rem;
}

.line-break-container > .line:last-child {
  margin-left: 0.5rem;
}

.line-break-container > .star {
  width: 32px;
  height: 32px;
}

.live-event-wrapper {
  margin: 30px 0;
}

.yearly-calendar {
  padding: 50px 0 50px 0;
  text-align: center;
}

.tribe-section
  .tribe-common--breakpoint-medium.tribe-events
  .tribe-events-l-container {
  padding-top: 30px;
  padding-bottom: 0;
}

/* MEDIA LIBRARY */

.media-library {
  text-align: center;
}

.media-library .cf-main .dataTables_empty {
  font-size: 0; /* Hide original text */
}

.media-library .cf-main .dataTables_empty::before {
  content: "No media is available yet. Please check back soon.";
  font-size: 1rem;
  display: block;
  width: 100%;
}

.media-library #cf-app .dataTables_length select {
  margin-top: 0;
}

.media-library,
.special-projects-library,
.press-releases-archive {
  padding: 50px 0;
}

/* Override Document Gallery plugin padding - previously at 1.5rem 0 */
.media-library #cf-app .cf-main,
.special-projects-library #cf-app .cf-main {
  padding: 0;
}

.media-library-container
  #cf-app
  .cf-table-grid:has(.dataTables_empty)
  tbody
  tr {
  padding-top: 2.5rem !important;
}

.media-library-container .cf-main .cf-table-grid:has(.dataTables_empty) {
  --grid-column: 1 !important;
}

.media-library-container .cf-main .cf-table-grid:has(.dataTables_empty) tbody {
  grid-template-columns: auto !important;
}

/* Loading Spinner */
#media-library-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  width: 100%;
}

.spinner-wrapper {
  text-align: center;
}

.loading-spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid #112e51;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.loading-text {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Media Item Wrapper */
.media-item-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  vertical-align: top;
  line-height: 0;
}

.media-item-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: scale-down;
  vertical-align: top;
}

.play-button-overlay-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
}

.play-button-logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #aad1eb;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.play-button-overlay-full:hover .play-button-logo-container {
  background: #aad1eb;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.play-button-logo {
  width: 0;
  height: 0;
  border-left: 20px solid #112e51;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .play-button-logo-container {
    width: 60px;
    height: 42px;
  }

  .play-button-logo {
    border-left: 15px solid #ffffff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }
}
/* END MEDIA LIBRARY */

.press-releases-archive .press-releases {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 0;
  row-gap: 1.5rem;
}

.press-releases-archive .press-releases > .press-release {
  display: flex;
  flex-direction: row;
}

.press-releases-archive .press-releases > .empty-press-release {
  padding: 10rem 0;
  text-align: center;
  width: 100%;
}

.press-releases-archive .press-releases > .press-release span {
  flex-shrink: 0;
  width: 180px;
}

.press-releases-archive .press-releases > .press-release a {
  text-decoration: none;
  color: var(--primary-color);
}

.press-releases-archive .press-releases > .empty-press-release span,
.press-releases-archive .press-releases > .press-release span,
.press-releases-archive .press-releases > .press-release a {
  font-size: 18px;
  font-weight: 500;
}

.press-releases-archive .link-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 2rem;
}

.press-releases-archive .view-all-press-releases-btn {
  background-color: #fff;
  color: #4d4d4d;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
}

.press-releases-archive .view-all-press-releases-btn {
  background-color: #fff;
  color: #4d4d4d;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  background-color: #e1f3f8;
  border: 1px solid #dae0e6;
}

#pagination-controls-container {
  display: flex;
  width: 100%;
  justify-content: center;
}

#pagination-controls {
  margin: 1rem 0;
  text-align: center;
}

#pagination-controls button {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border: 1px solid #eaeaea;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  color: #232e52;
}

#pagination-controls button:hover:not(:disabled) {
  background: #f5f5f5;
}

#pagination-controls button:disabled {
  opacity: 0.5;
  cursor: auto;
}

#page-info {
  font-weight: 500;
  margin: 0 1rem;
}

/* This is to update the empty content (text) of a library. Instead of no matching records found, just display this. */

.special-projects-library-container .cf-main .dataTables_empty {
  font-size: 0; /* Hide original text */
}

.special-projects-library-container .cf-main .dataTables_empty::before {
  content: "No documents available yet. Check back soon.";
  font-size: 1rem;
  display: block;
  width: 100%;
}

.special-projects-library-container
  .cf-main
  .cf-table-grid:has(.dataTables_empty) {
  --grid-column: 1 !important;
}

/* Reduce the padding and min-height events calendar plugin */
.yearly-calendar
  > div
  > .tribe-common
  > div.tribe-common-l-container.tribe-events-l-container {
  min-height: 400px;
  padding: 0;
}

/*Cascading style for single district councils*/
.tribe-common-l-container.tribe-events-l-container .table-hover {
  border-color: transparent;
  text-align: left;
  margin-bottom: 0px;
}

/*Mega menu for district councils*/
/* @media screen and (min-width: 1280px) {
    .sub-menu-columns ul.sub-menu {
        width: 570px !important;
        column-count: 3;
    }

    .sub-menu-columns ul.sub-menu li {
        display: inline-block;
        width: 100%;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1350px) {
    .sub-menu-columns ul.sub-menu {
        width: 380px !important;
        column-count: 2;
    }
} */

/* Custom styles for the events list */

.tribe-common--breakpoint-medium.tribe-events
  .tribe-events-c-top-bar__datepicker {
  border: unset;
  background: unset;
}

a.tribe-common-c-btn-border-small.tribe-events-c-top-bar__today-button.tribe-common-a11y-hidden {
  padding: 6px 15px;
  color: #141827;
  border: 1px solid #d5d5d5;
  font-family: "Helvetica Neue", Helvetica;
  font-size: 12px;
  font-weight: normal;
}

.tribe-common.tribe-common--breakpoint-medium
  button.tribe-events-c-top-bar__datepicker-button {
  width: unset;
  font-size: 28px !important;
  font-family: Lora, serif;
  font-weight: normal;
  color: #141827;
}

.datepicker.datepicker-dropdown.dropdown-menu.datepicker-orient-left.datepicker-orient-bottom {
  display: block;
  left: unset !important;
}

table.table.table-bordered.table-hover th {
  text-align: left;
  padding: 0.5rem 0.5rem !important;
}

table.table.table-bordered.table-hover tr td {
  padding: 0.5rem 0.5rem !important;
  text-align: left;
}

/* --- Custom Accordion Styles START --- */

.custom-accordion {
  width: 100%;
  margin-top: 1rem;
  border: none;
}

.accordion-item {
  border: none;
}

/* Hide the default checkbox */
.accordion-toggle {
  display: none;
}

.accordion-title {
  display: block;
  padding: 15px 0;
  background-color: #e1f3f8;
  color: #4d4d4d;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative; /* For the icon */
  padding-right: 50px; /* Space for the icon */
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
  border: 1px solid #4d4d4d;
  border-width: 0 0 1px 0;
}

.accordion-title > h3 {
  font-weight: 600;
  margin-bottom: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  overflow-y: auto;
  padding: 0;
  background-color: #e1f3f8;
  color: #4d4d4d;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out,
    margin 0.6s ease-out;
  margin-bottom: 1.5rem;
}

.accordion-content ul {
  margin-left: 0;
}

/* When the checkbox is checked, expand the content */
.accordion-toggle:checked ~ .accordion-content {
  max-height: 100vh;
  padding-top: 1rem;
  margin-bottom: 0;
}

.accordion-title-and-icon-container {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.accordion-title::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2341B6E6" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* Initial state (pointing right) and animation */
  transform: translateY(-50%);
  transition: transform 0.3s ease-in-out;
}

/* When the accordion is open, rotate the chevron */
.accordion-toggle:checked ~ .accordion-title::after {
  transform: translateY(-50%) rotate(90deg); /* Rotate 90 degrees to point down */
}

/* --- Custom Accordion Styles END --- */

/* CALENDAR */

.district-council-events-container {
  border: 1px solid rgba(229, 235, 241, 1);
  border-radius: 8px;
}

.events-tabs {
  display: flex;
  margin-bottom: 24px;
  gap: 16px;
}

.events-tab {
  padding: 10px 0;
  text-align: center;
  background: transparent;
  color: #6c757d;
  text-decoration: none;
  font-weight: 600;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}

.events-tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid #007cba;
}
.events-tab.active:hover {
  color: #007cba;
}
.events-tab:hover:not(.active) {
  border-bottom: 2px solid #007cba;
  color: var(--text-color);
}

.district-council-table {
  width: 100%;
  min-width: 1000px;
  background-color: #fff;
  color: var(--text-color);
  margin-bottom: 0;
  table-layout: fixed !important; /* Force fixed layout */
  border-collapse: collapse;
}

.district-council-table td {
  text-align: left !important;
  padding: 9px 12px;
  vertical-align: middle !important;
}

.district-council-table th {
  text-align: left;
  padding: 9px 12px;
  font-weight: 600;
  vertical-align: middle !important;
}

.district-council-table .event-actions {
  text-align: center !important;
}

/* Default widths for All Events tab (all 6 columns visible) */
.district-council-table th:nth-child(1),
.district-council-table td:nth-child(1) { width: 16% !important; }
.district-council-table th:nth-child(2),
.district-council-table td:nth-child(2) { width: 16% !important; }
.district-council-table th:nth-child(3),
.district-council-table td:nth-child(3) { width: 34% !important; }
.district-council-table th:nth-child(4),
.district-council-table td:nth-child(4) { width: 14% !important; }
.district-council-table th:nth-child(5),
.district-council-table td:nth-child(5) { width: 10% !important; }
.district-council-table th:nth-child(6),
.district-council-table td:nth-child(6) { width: 10% !important; }

/* Upcoming Events - Column 5 (Video) hidden, Column 6 (Actions) visible */
.events-tabs-container[data-active-tab="upcoming"] .video-column {
  display: none !important;
}

.events-tabs-container[data-active-tab="upcoming"] .district-council-table th:nth-child(1),
.events-tabs-container[data-active-tab="upcoming"] .district-council-table td:nth-child(1) { width: 16% !important; }
.events-tabs-container[data-active-tab="upcoming"] .district-council-table th:nth-child(2),
.events-tabs-container[data-active-tab="upcoming"] .district-council-table td:nth-child(2) { width: 16% !important; }
.events-tabs-container[data-active-tab="upcoming"] .district-council-table th:nth-child(3),
.events-tabs-container[data-active-tab="upcoming"] .district-council-table td:nth-child(3) { width: 44% !important; }
.events-tabs-container[data-active-tab="upcoming"] .district-council-table th:nth-child(4),
.events-tabs-container[data-active-tab="upcoming"] .district-council-table td:nth-child(4) { width: 14% !important; }
.events-tabs-container[data-active-tab="upcoming"] .district-council-table th:nth-child(6),
.events-tabs-container[data-active-tab="upcoming"] .district-council-table td:nth-child(6) { width: 10% !important; }

/* Past Events - Column 6 (Actions) hidden, Column 5 (Video) visible */
.events-tabs-container[data-active-tab="past"] .actions-column {
  display: none !important;
}

.events-tabs-container[data-active-tab="past"] .district-council-table th:nth-child(1),
.events-tabs-container[data-active-tab="past"] .district-council-table td:nth-child(1) { width: 16% !important; }
.events-tabs-container[data-active-tab="past"] .district-council-table th:nth-child(2),
.events-tabs-container[data-active-tab="past"] .district-council-table td:nth-child(2) { width: 16% !important; }
.events-tabs-container[data-active-tab="past"] .district-council-table th:nth-child(3),
.events-tabs-container[data-active-tab="past"] .district-council-table td:nth-child(3) { width: 44% !important; }
.events-tabs-container[data-active-tab="past"] .district-council-table th:nth-child(4),
.events-tabs-container[data-active-tab="past"] .district-council-table td:nth-child(4) { width: 14% !important; }
.events-tabs-container[data-active-tab="past"] .district-council-table th:nth-child(5),
.events-tabs-container[data-active-tab="past"] .district-council-table td:nth-child(5) { width: 10% !important; }

.actions-column,
.video-column {
  text-align: center !important;
}

.events-tabs-container[data-active-tab="upcoming"] .video-column {
  display: none !important;
}

/* Hide actions column for past events */
.events-tabs-container[data-active-tab="past"] .actions-column {
  display: none !important;
}

.event-row {
  display: none; /* Initially hide all events */
}

.event-row.hidden {
  display: none;
}

/* Loading state styles */
.loading-overlay {
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007cba;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #6c757d;
  font-size: 14px;
}

.pagination-section {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-controls.hidden {
  display: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
}

.dc-pagination-nav,
.dc-pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 6px 12px;
  text-decoration: none;
  border: 1px solid #dee2e6;
  background: white;
  font-size: 14px;
  color: var(--text-color) !important;
  transition: all 0.2s ease;
}

.dc-pagination-number.active {
  background: #007cba;
  color: white !important;
  border-color: #007cba;
}

.dc-pagination-nav:hover:not(.disabled),
.dc-pagination-number:hover:not(.active) {
  background: #e9ecef;
  color: var(--text-color) !important;
  text-decoration: none;
}

.dc-pagination-nav.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  color: #6c757d;
  font-size: 14px;
}

.district-council-table > tbody > tr.even-row {
  background: #f5f7fab2;
}

.district-council-table tbody,
.district-council-table thead,
.district-council-table td,
.district-council-table th,
.district-council-table tr {
  border-style: none;
}

.district-council-table thead {
  background-color: rgba(171, 190, 209, 0.3);
}

.event-meeting a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600 !important;
}

.event-meeting a:hover {
  text-decoration: underline;
}

.event-meeting a:visited {
  color: #800080;
}

.event-files a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 400 !important;
}

.event-files a:hover {
  text-decoration: underline;
}

.event-files a:visited {
  color: #800080;
}

.event-recording {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 400 !important;
}

.event-recording:visited {
  color: var(--primary-color);
}

.event-recording svg {
  width: 16px;
  height: 16px;
}

.event-actions a,
.event-recording {
  display: flex;
  justify-content: center !important;
}

.showing-info {
  color: #6c757d;
  font-size: 14px;
  padding: 5.5px 0;
}

.pagination-top {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: #fff;
}
.pagination-bottom {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top: 1px solid rgba(229, 235, 241, 1) !important;
  background: #fff;
}
.next-btn-top,
.next-btn-bottom {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-left: 0;
}
.prev-btn-top,
.prev-btn-bottom {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-right: 0;
}

/* Meeting Type Filter Styles */
.meeting-type-filter,
.district-council-filter {
  position: relative;
  display: flex;
}

.meeting-type-filter-button,
.district-council-filter-button {
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  color: var(--text-color);
  cursor: pointer;
  min-width: 250px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meeting-type-filter-button .placeholder,
.district-council-filter-button .placeholder {
  color: #666;
}

.filter-arrow {
  opacity: 0.5;
}

.meeting-type-filter-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  display: none;
  width: 250px;
  overflow: hidden;
}

.district-council-filter-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  display: none;
  width: 250px;
  max-height: 250px;
  overflow-y: auto;
}

.meeting-type-filter-dropdown.open,
.district-council-filter-dropdown.open {
  display: block;
}

.meeting-type-filter-option,
.district-council-filter-option {
  padding: 9px 12px;
  cursor: pointer;
  text-align: left;
  background-color: white;
  border-bottom: 1px solid #f0f0f0;
}

.meeting-type-filter-option:last-child,
.district-council-filter-option:last-child {
  border-bottom: none;
}

.meeting-type-filter-option:hover,
.district-council-filter-option:hover {
  background-color: var(--primary-color);
  color: white;
}

.calendar-filter-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.clear-all-filters-btn {
  border: none;
  background: transparent;
  color: #333333;
  font-weight: 700;
  padding: 10px;
}
.clear-all-filters-btn:hover {
  opacity: 1;
}

@media (max-width: 991px) {
  .calendar-filter-container:has(.district-council-filter) {
    display: flex;
    flex-direction: column;
  }
  .calendar-filter-container:has(.district-council-filter)
    .meeting-type-filter-button,
  .calendar-filter-container:has(.district-council-filter)
    .district-council-filter-button,
  .calendar-filter-container:has(.district-council-filter)
    .meeting-type-filter-dropdown.open,
  .calendar-filter-container:has(.district-council-filter)
    .district-council-filter-dropdown.open,
  .calendar-filter-container:has(.district-council-filter)
    .calendar-dropdown.active {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .meeting-type-filter {
    width: 100%;
  }
  .meeting-type-filter-button {
    width: 100%;
    min-width: auto;
  }
  .meeting-type-filter-dropdown {
    width: auto;
  }
  .calendar-filter-container {
    flex-direction: column;
  }
  .clear-all-filters-btn {
    border: 1px solid #ddd;
    background: #fff;
  }
  .clear-all-filters-btn:hover {
    border: 1px solid #ddd;
  }
  .pagination-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .pagination-top {
    flex-direction: column-reverse;
    gap: 10px;
  }
}

/* END CALENDAR */

@media (max-width: 1279px) {
  .social-media-container {
    grid-template-columns: repeat(4, 48px);
  }

  .quick-links ul > li {
    margin-bottom: 1rem;
  }
}

@media (max-width: 1023px) {
  .social-media-container {
    grid-template-columns: repeat(3, 48px);
  }
}

@media (max-width: 767px) {
  .social-media-container {
    grid-template-columns: repeat(5, 48px);
  }

  .member-column img {
    width: 128px;
    height: 128px;
  }

  .quick-links ul > li {
    margin-bottom: 0.75rem;
  }

  .media-library-container
    #cf-app
    .cf-table-grid:has(.dataTables_empty)
    tbody
    tr {
    padding-top: 2rem !important;
  }
}

/* Collapsible Goals Styles */
.goals-content-container .goal-header {
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 0;
  padding-right: 30px;
}

.goals-content-container .goal-header::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2341B6E6" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.3s ease-in-out;
}

.goals-content-container .goal-header.collapsed::after {
  transform: translateY(-50%) rotate(0deg);
}

.goals-content-container .goal-content {
  margin-top: 0;
  transition: all 0.3s ease;
  max-height: 500px;
  overflow: hidden;
  opacity: 1;
  padding-top: 10px;
}

.goals-content-container .goal-content.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  height: 0;
}

.goals-content-container .goal-content li:last-child {
  margin-bottom: 0;
}

.goals-content-container .goal-section {
  margin-bottom: 1.5rem;
}

.goals-content-container .goal-section:last-child {
  margin-bottom: 0;
}

.goals-content-container .goal-header:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.goals-content-container .goal-header:focus:not(:focus-visible) {
  outline: none;
}

@media (max-width: 768px) {
  .goals-content-container .goal-header {
    font-size: 1rem;
  }
}
