/* /// GALLERY START /// */

/* LIST WITH THUMBNAILS / GALLERY */
.gallery-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Default cell behavior */
.gallery-table td {
  vertical-align: top;
  padding-bottom: 2.5rem;
}

/* Ensure flat top alignment between image and text */
.gallery-table td > *:first-child {
  margin-top: 0;
}

/* 155px image + 30px gap = 185px total column width */
.gallery-table td.gallery-image-col {
  width: 185px;
  min-width: 185px;
  max-width: 185px;
  padding-right: 30px;
  box-sizing: border-box;
}

/* Text column fills the remaining horizontal width */
.gallery-table td.gallery-content-col {
  width: auto;
  padding-left: 0;
}

.gallery-table td.gallery-content-col a:hover,
.gallery-table td.gallery-content-col a:focus {
  text-decoration: underline;
}

/* Mobile responsive stack */
@media (max-width: 767.98px) {
  .gallery-table,
  .gallery-table tbody,
  .gallery-table tr,
  .gallery-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .gallery-table td.gallery-image-col {
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .gallery-table td.gallery-content-col {
    padding-bottom: 2.5rem;
  }
}
/* /// GALLERY END /// */

/* /// LIST B START /// */
    .list-b-table {
      width: 100%;
      max-width: 800px;
      border-collapse: collapse;
    }
 
    .list-b-table td {
      padding: 0 0 2.5rem;
      vertical-align: middle;
    }
 
    .list-b-table td.list-b-image-container {
      width: 250px;
    }
 
    /* Real image (img) or placeholder box (div.list-b-image) */
    .list-b-image-container img {
      display: block;
      width: 250px;
      max-width: 100%;
      height: 145px;
    }
 
    .list-b-image-container img {
      object-fit: cover;
    }
 
    div.list-b-image {
      display: flex;
      align-items: center;
      justify-content: center;
      background: #ddd;
      color: #666;
      font-size: 0.8rem;
      text-align: center;
    }
 
    .list-b-item-content a:hover,
    .list-b-item-content a:focus {
      text-decoration: underline;
    }

    .list-b-item-content {
      padding-left: 20px !important;
    }

 
    /* Stack on small screens */
    @media (max-width: 600px) {
      .list-b-table,
      .list-b-table tbody,
      .list-b-table tr,
      .list-b-table td {
        display: block;
        width: 100%;
      }
    .list-b-item-content {
      padding-left: 0px !important;
    }
 
      .list-b-table td.list-b-image-container {
        width: 100%;
        text-align: left;
      }
    }
/* /// LIST B END /// */

/* /// EVENTS START /// */
@media (max-width: 1110px) {
    .event-table,
    .event-table tbody,
    .event-table tr,
    .event-table td {
        display: block;
        width: 100% !important;
    }
}

.event-image-container img {
    width: 350px;
    margin-top: 16px;
    }
}

.event-image-container {
width: 350px;
}


/* ACCORDION MENU */
.accordion-button {
  background-color: #07163C;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

/* Keep navy background and white text even when expanded */
.accordion-button:not(.collapsed) {
  background-color: #07163C !important;
  color: #ffffff !important;
  box-shadow: none !important; /* Removes Bootstrap's light blue focus/active glow */
}

/* White circle disc around Bootstrap's caret */
.accordion-button::after {
  background-color: #ffffff !important;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  background-size: 0.85rem;          /* Sizes down the arrow inside the circle */
  background-position: center;
  transition: transform 0.2s ease-in-out;
}

/* Closed state: points DOWN */
.accordion-button.collapsed::after {
  transform: rotate(0deg);
}
/* Expanded content area background */
.accordion-body {
  background-color: #f9f9f9;
}

/* Open state: points UP */
.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}
/* /// EVENTS END /// */

/* /// LIST C START /// */
/* ACCORDION MENU */
.accordion-button {
  background-color: #07163C;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

/* Keep navy background and white text even when expanded */
.accordion-button:not(.collapsed) {
  background-color: #07163C !important;
  color: #ffffff !important;
  box-shadow: none !important; /* Removes Bootstrap's light blue focus/active glow */
}

/* White circle disc around Bootstrap's caret */
.accordion-button::after {
  background-color: #ffffff !important;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  background-size: 0.85rem;          /* Sizes down the arrow inside the circle */
  background-position: center;
  transition: transform 0.2s ease-in-out;
}

/* Closed state: points DOWN */
.accordion-button.collapsed::after {
  transform: rotate(0deg);
}
/* Expanded content area background */
.accordion-body {
  background-color: #f9f9f9;
}

/* Open state: points UP */
.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}
/* /// LIST C END /// */

/* /// PROGRAM START /// */
@media (max-width: 1110px) {
    .event-table,
    .event-table tbody,
    .event-table tr,
    .event-table td {
        display: block;
        width: 100% !important;
    }
}

.event-image-container img {
    max-height: 200px;
    max-width: 350px;
    width: 100%;
}

.event-image-container {
width: 350px;
}
/*  TOC */
/* Container fills 100% of parent width */
.car-toc {
  width: 100%;
}

/*  LIST */
/* Auto 3-column balancing on desktop, 1 on mobile */
.car-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  column-gap: 2rem;
}
@media (min-width: 1100px) {
  .car-toc-list {
    column-count: 2;
  }
}
.car-toc-list li {
  break-inside: avoid;
  margin-bottom: 0.85rem;
}
/* Link typography 
.car-toc-list li a {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #5296EF;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}*/
/* Font Awesome fa-circle-chevron-right (unicode: \f138) */
.car-toc-list li a::before {
  content: "\f138";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 20px;
  color: #5296EF;
  margin-right: 10px;
  flex-shrink: 0;
  transition: transform 0.15s ease-in-out;
}
/* Hover effects 
.car-toc-list li a:hover {
  color: #A3F9F1;
  text-decoration: underline;
}
.car-toc-list li a:hover::before {
  transform: translateX(3px);
}*/


/* /// PROGRAM END /// */

/* /// SMART TABLE START /// */
:root {
  --tbl-navy: #07163C;
  --tbl-white: #ffffff;
}

/* ==========================================================================
   CONTAINER & BASE TABLE
   ========================================================================== */

.resultsSection .tableContainer {
  position: relative;
  width: 100%;
}

.resultsSection table.dataTable {
  width: 100%;
  position: relative;
  z-index: 1;
  border-collapse: collapse;
}

.resultsSection table.dataTable th {
  border: 1px solid var(--tbl-white);
  padding: 1em;
  vertical-align: middle;
}

.resultsSection table.dataTable td {
  border: 1px solid var(--tbl-white);
  padding: 1em;
  vertical-align: top !important;
}

/* Table Header (Navy bar, white text, Bootstrap 5 overrides) */
.resultsSection table.dataTable thead th {
  background-color: var(--tbl-navy) !important;
  --bs-table-bg: var(--tbl-navy) !important;
  --bs-table-color: var(--tbl-white) !important;
  color: var(--tbl-white) !important;
  padding-right: 3.8rem !important; /* Clearance for circular badge */
  font-size: 15px;
  position: relative;
  box-shadow: none !important;
}

.resultsSection table.dataTable thead th * {
  color: var(--tbl-white) !important;
}

@media screen and (max-width: 414px) {
  .resultsSection table.dataTable thead th {
    font-size: 1.2em;
  }
}

/* ==========================================================================
   PURE CSS ACCORDION SORT DISC (100% SVG-FREE, ZERO FAINTNESS)
   ========================================================================== */

/* 1. Suppress native DataTables arrows */
table.dataTable thead th::before,
table.dataTable thead th::after,
table.dataTable thead th .dt-column-order::before {
  display: none !important;
  content: "" !important;
}

/* 2. White circle badge pinned to right */
table.dataTable thead th .dt-column-order {
  position: absolute !important;
  right: 1rem !important;
  top: 50% !important;
  margin-top: -1rem !important;
  transform: none !important;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 50% !important;
  background: var(--tbl-white) !important;
  background-image: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: block !important;
  overflow: hidden !important;
  opacity: 1 !important;
  filter: none !important;
}

/* 3. Base pseudo-element inside disc */
table.dataTable thead th .dt-column-order::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  filter: none !important;
  top: 50% !important;
  left: 50% !important;
}

/* State 1: Unsorted Dash (Dead-center) */
table.dataTable thead th:not(.dt-ordering-asc):not(.dt-ordering-desc):not(.sorting_asc):not(.sorting_desc) .dt-column-order::after {
  width: 10px !important;
  height: 2px !important;
  background-color: var(--tbl-navy) !important;
  border: none !important;
  border-radius: 2px !important;
  transform: translate(-50%, -50%) !important;
}

/* Sorted Chevrons Shared Geometry */
table.dataTable thead th:is(.dt-ordering-desc, .sorting_desc, .dt-ordering-asc, .sorting_asc) .dt-column-order::after {
  width: 8px !important;
  height: 8px !important;
  background-color: transparent !important;
  border-right: 2.5px solid var(--tbl-navy) !important;
  border-bottom: 2.5px solid var(--tbl-navy) !important;
  border-left: none !important;
  border-top: none !important;
}

/* State 2: Sorted Descending (Points DOWN) */
table.dataTable thead th:is(.dt-ordering-desc, .sorting_desc) .dt-column-order::after {
  transform: translate(-50%, -65%) rotate(45deg) !important;
}

/* State 3: Sorted Ascending (Points UP) */
table.dataTable thead th:is(.dt-ordering-asc, .sorting_asc) .dt-column-order::after {
  transform: translate(-50%, -35%) rotate(-135deg) !important;
}

/* ==========================================================================
   TABLE BODY, STRIPING & HOVER
   ========================================================================== */

.resultsSection table.dataTable tbody td {
  font-size: 14px;
  font-weight: normal;
  transition: 0.3s all linear;
  vertical-align: top !important;
}

.resultsSection table.dataTable tbody tr:nth-child(odd) td {
  background: #f4f4f4;
}

.resultsSection table.dataTable tbody tr:nth-child(even) td {
  background: var(--tbl-white);
}

.resultsSection table.dataTable tbody tr:hover td {
  background: #ddd;
}

div.dt-container.dt-empty-footer tbody > tr:last-child > * {
  border-bottom: 1px solid var(--tbl-white);
}

/* ==========================================================================
   TABLE INFO & SEARCH BAR
   ========================================================================== */

.resultsSection :is(.dataTables_info, .dt-info) {
  font-size: 1.2em;
  font-style: italic;
  font-weight: 900;
  color: grey !important;
}

.resultsSection .tableContainer :is(.dt-container, .dataTables_wrapper) :is(.dt-search, .dataTables_filter) label {
  font-size: 14px;
  font-family: arial, sans-serif;
  font-weight: bold;
}

.resultsSection .tableContainer :is(.dt-container, .dataTables_wrapper) :is(.dt-search, .dataTables_filter) :is(.dt-input, input) {
  display: block;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: var(--tbl-white);
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

/* ==========================================================================
   PAGINATION CONTROLS
   ========================================================================== */

.resultsSection .pagination {
  margin-top: -0.5em;
}

.resultsSection .tableContainer :is(.dt-container, .dataTables_wrapper) :is(.dt-paging-button, .paginate_button) {
  border: 1px solid #ddd !important;
  margin: 7px;
  padding: 5px 7.5px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1px;
  font-weight: 800;
  color: #0275d8 !important;
}

.resultsSection .tableContainer :is(.dt-container, .dataTables_wrapper) :is(.dt-paging-button.current, .paginate_button.active a, .dt-paging-button.current a) {
  background-color: #0275d8 !important;
  border-color: #0275d8 !important;
  color: #05d6ee !important;
  text-decoration: none;
}

.resultsSection .tableContainer :is(.dt-container, .dataTables_wrapper) :is(.dt-paging-button, .paginate_button):is(:hover, :focus) {
  color: #014c8c;
  background: #eceeef;
  border-color: #ddd;
}

.resultsSection :is(.paginate_button, .dt-paging-button) .fa {
  color: #05d6ee;
  font-size: 1.7em;
  top: 0.1em;
  position: relative;
}

.resultsSection :is(.paginate_button.disabled, .dt-paging-button.disabled) {
  opacity: 0.3;
}

.resultsSection .tableContainer :is(.dt-container, .dataTables_wrapper) :is(.dt-paging-button.first, .dt-paging-button.last) {
  display: none;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

@media screen and (max-width: 767px) {
  .resultsSection :is(.dataTables_info, .dt-info) {
    display: none;
  }

  .resultsSection .tableContainer :is(.dt-container, .dataTables_wrapper) :is(.dt-search, .dataTables_filter) {
    float: none;
    text-align: center;
  }

  .resultsSection .tableContainer :is(.dt-container, .dataTables_wrapper) :is(.dt-search, .dataTables_filter) :is(label, input, .dt-input) {
    float: none;
    text-align: center;
    margin: 0 auto;
  }
}
/* /// SMART TABLE END /// */

/* /// LIST E START /// */
  /* Cells flow left to right and wrap, even though each tile is in its own <tr>.
     Empty cells take no room, so a short row's leftovers fill in next to it. */
  .tile-table { display: block; width: 100%; }
  .tile-table tbody { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; }
  .tile-table tr { display: contents; }
  /* Mobile first: 1 column by default */
  .tile-table td { display: block; height: auto !important; width: 100%; }
  /* Hide any cell with no tags inside it, even if it holds spaces or &nbsp; */
  .tile-table td.tile-empty,
  .tile-table td:empty,
  .tile-table td:not(:has(*)) { display: none !important; }
 
  /* Bootstrap lg (992px) and up: 3 columns */
  @media (min-width: 992px) {
    .tile-table td { width: calc((100% - 2rem) / 3); }
  }
/* /// LIST E END /// */

/* /// QA START /// */
/*  TOC */
/* Container fills 100% of parent width */
.car-toc {
  width: 100%;
}

/*  LIST */
/* Auto 3-column balancing on desktop, 1 on mobile */
.car-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  column-gap: 2rem;
}
@media (min-width: 1100px) {
  .car-toc-list {
    column-count: 2;
  }
}
.car-toc-list li {
  break-inside: avoid;
  margin-bottom: 0.85rem;
}
/* Link typography 
.car-toc-list li a {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #1a2e4c;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}*/
/* Font Awesome fa-circle-chevron-right (unicode: \f138) */
.car-toc-list li a::before {
  content: "\f138";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 20px;
  color: #479E91;
  margin-right: 10px;
  flex-shrink: 0;
  transition: transform 0.15s ease-in-out;
}
/* Hover effects 
.car-toc-list li a:hover {
  color: #A3F9F1;
  text-decoration: underline;
}
.car-toc-list li a:hover::before {
  transform: translateX(3px);
}*/
/* /// QA END /// */
