.mega-menu-grid {
  display: flex;
  width: 100%;
  gap: 2rem;
}

.mega-menu-column {
  flex: 0 0 calc(33.333% - 1.333rem); /* Set fixed width for each column */
  min-width: 0; /* Prevents flex items from overflowing */
}

.mega-menu-nav {
  padding-bottom: 37px;
}

.mega-menu-item {
  width: 100%;
  break-inside: avoid;
}

.mega-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 991px) {
  .mega-menu-nav {
    padding-bottom: 0;
    gap: 0;
  }
}

@media (max-width: 991px) {
  .mega-menu-grid {
    flex-direction: column;
  }

  .mega-menu-column {
    width: 100%;
  }

  .mega-menu-grid {
    gap: 0;
  }
}

.flatpickr-date-range {
  position: relative;
  padding-right: 40px !important; /* Make room for the icon */
  width: 100%;
  cursor: pointer;
}

.flatpickr-date-range:after {
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOSIgaGVpZ2h0PSIyMSIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzY2NiIgZD0iTTQuNzYyIDkuMzM0aDJ2MmgtMnptMCA0aDJ2MmgtMnptNC00aDJ2MmgtMnptMCA0aDJ2MmgtMnptNC00aDJ2MmgtMnptMCA0aDJ2MmgtMnoiLz48cGF0aCBmaWxsPSIjNjY2IiBkPSJNMi43NjIgMjAuMzM0aDE0YzEuMTAzIDAgMi0uODk3IDItMnYtMTRjMC0xLjEwMy0uODk3LTItMi0yaC0ydi0yaC0ydjJoLTZ2LTJoLTJ2MmgtMmMtMS4xMDMgMC0yIC44OTctMiAydjE0YzAgMS4xMDMuODk3IDIgMiAybTE0LTE0djEyaC0xNHYtMTJ6Ii8+PC9zdmc+')
    no-repeat 50%;
  background-size: 20px;
  content: '';
  height: 24px;
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  opacity: 0.8;
  z-index: 1;
}

.datepicker-wrapper {
  position: relative;
  display: block;
  width: 100%;
}
.flatpickr-wrapper {
  width: 100%;
}

.calendar-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #000;
}

.ais-SearchBox-form .btn,
.form-search .btn,
.search__content button {
  min-width: auto !important;
}

@media (min-width: 975px) {
  .user-logged-in .header {
    top: 80px !important;
  }
  .user-logged-in .offcanvas {
    top: 80px !important;
  }
}

@media (max-width: 975px) {
  .user-logged-in .header {
    top: 40px !important;
  }
  .user-logged-in .offcanvas {
    top: 40px !important;
  }
}

@media (min-width: 992px) {
  .themes-list li a {
    white-space: nowrap;
  }
}

.search-active header {
  z-index: 9999 !important;
}

.mega-menu-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.toggle-icon,
.toggle-submenu {
  display: none;
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .toggle-icon,
  .toggle-submenu {
    display: block;
    margin-left: 8px;
  }

  .mega-menu-title-wrapper {
    padding-right: 16px;
  }

  .mega-menu-title {
    flex: 1;
  }

  .has-drop-down-a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .header-sticky .mega-menu-left {
    padding-top: 50px !important;
  }
}
/*
 .hide-chevron .nice-select::after {
  display: none;
 }
*/
html body .addeventatc {
  border: 0;
  box-shadow: none !important;
  background: transparent;
  padding: 0;
  margin: 0;
  width: auto;
}

html body .addeventatc_icon {
  display: none;
}

.atc-span {
  padding-top: 10px;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #222;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  text-decoration: underline;
}

.atc-span:hover {
  text-decoration: none;
}

/* initial "clamped" state: */
[data-show-holder]:not(.story-block) [data-show-content] {
  display: none;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 300px;
  transition: max-height 0.3s ease;
}

[data-show-holder]:not(.story-block).show [data-show-content] {
  display: block !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
}

.aside-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem; /* space between title and list */
}

.aside-title {
  flex-shrink: 0; /* prevents it from growing or shrinking */
}

.themes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1; /* makes this column expand */
  margin: 0;
  padding: 0;
  list-style: none;
}

.themes-list li {
  white-space: nowrap; /* prevents link text wrapping */
}

.themes-list a {
  display: inline-block;
  white-space: nowrap;
}

html body .bg-lemon-lite {
  background-color: #fefadf !important;
}

.lin-grad {
  background: linear-gradient(to bottom, #edf5f5 0%, rgba(237, 245, 245, 0) 100%);
}

.nice-select-dropdown .list {
  height: 100% !important;
  max-height: 100% !important;
  overflow: auto !important;
}
.nice-select-dropdown ul:not(.list-reset) li::after {
  width: 0px;
}

.nice-select.form-select {
  padding-left: 10px;
}

.nice-select::after {
  right: 15px;
}
.nice-select.open .nice-select-dropdown {
  max-height: 240px; /*or whatever height you want*/
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .event-footer ul.list-bullet {
    display: flex !important;
    justify-content: left !important;
    width: 100% !important;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .event-footer ul.list-bullet li {
    display: inline-block !important;
    width: auto !important;
  }
}

.fellow-img-hero img {
  border-radius: 50%;
}

@media (min-width: 1280px) {
  .fellow-img-hero img {
    max-width: 200px;
    max-height: 200px;
  }
}

@media (min-width: 1024px) {
  .fellow-img-hero img {
    max-width: 200px;
    max-height: 200px;
  }
}

.home .about-block a {
  color: #fff;
  display: block;
}

.home .about-block a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.research_gate {
  width: 16px;
  height: 16px;
}

.research_gate path,
.google_scholar path,
.orcid path {
  fill: #3171ae;
}

.research_gate:hover path,
.google_scholar:hover path,
.orcid:hover path {
  fill: #222;
}

.google_scholar {
  width: 24px;
  height: 24px;
}
.orcid {
  width: 20px;
  height: 20px;
}

.accordion-item .accordion-speaker-header,
.accordion-item button {
  color: #000 !important;
}

.nice-select-dropdown {
  z-index: 2 !important;
}

.form-check-input:checked[type='radio'] {
  z-index: -1;
}

.flatpickr-monthDropdown-months {
  display: block !important;
}

.list-unstyled.tag-list li {
  z-index: 0;
}

.table {
  --bs-table-bg: transparent;
}

.btns .btn-arrow:focus,
.donate-link:focus,
input[type='checkbox']:focus,
input[type='radio']:focus,
.form-check label:focus,
.nice-select:focus {
  outline: 1px solid #000;
}

.donate-link:focus {
  text-decoration: underline;
}

.nice-select .option.focus,
.nice-select .option.selected.focus,
.nice-select .option:hover {
  background-color: #f6f6f6;
  border: 1px solid #000;
}

.incident-link {
  color: inherit;
  text-decoration: none;
}

.incident-link:hover .incident-title {
  text-decoration: underline;
}

.award-link {
  color: inherit;
  text-decoration: none;

  position: absolute;
  inset: 0; /* shorthand for top:0 right:0 bottom:0 left:0 */
  z-index: 5;
  cursor: pointer;
}

.award-link:hover .award-title {
  text-decoration: underline;
}

.project-link {
  color: inherit;
  text-decoration: none;
}

.project-link:hover .project-title {
  text-decoration: underline;
}

.visually-hidden-focusable:focus,
.visually-hidden-focusable:active {
  position: absolute;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  text-indent: 0;
  opacity: 1;
  visibility: visible;
  background: #ffffff; /* white background */
  color: #000000; /* black text */
  padding: 8px 16px;
  font-size: 1rem;
  border: 2px solid #000000;
  z-index: 1000;
  display: inline-block;
}

.tooltip-custom {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none; /* Remove default focus outline if styling your own */
}

.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 8px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity 0.3s;
  z-index: 10;
}

.tooltip-custom:hover .tooltip-content,
.tooltip-custom:focus .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.select2-selection {
  padding-top: 8px;
  border: 1px solid #000 !important;
  font-size: 16px;
  height: 45px !important;
  line-height: 45px !important;
  width: 100%;
}

.messages--error {
  background: white;
  border: 0.5px solid #e53e3e;
  padding: 25px;
  margin: 15px;
}

label.form-required::after {
  content: ' *';
  color: red;
  margin-left: 0.2em;
}

input.form-control.error,
select.form-select.error,
textarea.form-control.error {
  border: 2px solid #dc3545;
  background-color: #fff8f8;
}

.form-item-custom-amount {
  display: none;
}

.topic-card {
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.topic-card:hover {
  border-color: #f9e460;
  background-color: black;

  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
  color: white;
}
.topic-card.active {
  border-color: #f9e460;
  background-color: #f9e460;
  color: black;
}

.topic-card-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #ccc;
  border-radius: 6px;
}

.select-all-container label {
  display: inline-block;
  font-size: 18px;
  margin-left: 2px;
}

.placeholder {
  background-color: unset;
  color: black;
  opacity: 1;
}

.no-menu-access .header {
  top: 0px !important;
}

.no-caret::after {
  display: none !important;
}

.w-110 {
  width: 110% !important;
}

.alert-close {
  position: absolute;
  right: 0;
  top: 0px;
  z-index: 9999;
  opacity: 1;
  border: 0px;
}

img.homepage-card-img {
  width: 520px;
  height: 300px;
  object-fit: contain;
}
@media (max-width: 768px) {
  img.homepage-card-img {
    height: 150px;
  }
}

.email-help p {
  margin-bottom: 0px !important;
}

.priority-block {
  color: black;
}
.priority-block h2 {
  color: black;
  font-size: 3.8rem;
}

/* .contact-checkbox,
.email-minister-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 5px;
} */

.card-grid {
  display: grid;
  grid-template-columns: 60% 50%;
  align-items: start;
  position: relative;
  height: 100%;
  grid-template-rows: 1fr auto;
}

.card-content {
  grid-column: 1 / 2;
  grid-row: 1;
  z-index: 2;
  align-self: start;
}

.card-image {
  grid-column: 2 / 3;
  grid-row: 1;
  z-index: 1;
  position: relative;
}

.card-image img {
  width: 200px;
  height: 200px !important;
  height: auto;
  object-fit: contain;
}

.card-image {
  margin-left: -20%;
}

.card-footer {
  grid-column: 1 / 3;
  grid-row: 2;
  height: 50px;
  display: grid;
  grid-template-columns: 66% 34%;
  background: #003c71;
}

.rf .text-sm {
  font-size: 12px !important;
}

.rf .text-xs {
  font-size: 9px !important;
}

.rf p {
  margin-bottom: 0px;
}

.rf {
  margin: 5px;
  padding: 3px;
  height: 80%;
  border-radius: 10px;
  font-weight: 900 !important;
}
.card-footer .fw-bold {
  font-weight: 900 !important;
}

.hero-img-holder {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50%;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
}
@media (min-width: 1200px) {
  .hero-img-holder {
    width: 55%;
  }
}

.hero-block .container {
  position: relative;
  z-index: 2;
}

.thumbnail-container img {
  height: 300px;
  width: auto;
  object-fit: contain;
}
.case-study-item img {
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.two-column-text {
  column-count: 1;
}

@media (min-width: 768px) {
  .two-column-text {
    column-count: 2;
  }
}

.two-column-text p,
.two-column-text h2,
.two-column-text h3,
.two-column-text img {
  break-inside: avoid;
}

.two-column-text img {
  border-radius: 10px;
}

.swiper-wrapper {
  padding-bottom: 30px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card-body {
  border-radius: 0px 0px 10px 10px;
}
.feature-card img {
  border-radius: 10px 10px 0px 0px;
}

.priority-block p {
  margin-bottom: 0px;
}

.header-text-container {
  padding: 12px;
}

.header-text {
  border-left: solid 1.5px;
  width: 200px;
  text-transform: uppercase;
  padding: 10px;
}

span.header-tag {
  letter-spacing: 0.08rem;
  font-size: 16px;
}

.get-involved-form {
  box-shadow: #f95306 0px 5px 15px !important;
  background: white;
}

.case-study-footer p,
.slider-container p {
  margin-bottom: 0px;
}

.full-height-section {
  height: 90vh;
}

.graph {
  height: 100vh;
}

.bg-primary-gradient {
  background: linear-gradient(90deg, #0039aa, #3a7ebe);
}

.swiper-content {
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  border-radius: 24px;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    background 0.35s ease;
}

.swiper-content:hover {
  transform: translateY(-12px) scale(1.01);

  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  border-color: #dbeafe;
}

.general-page-holder .container {
  padding-top: 40px;
}
.get-involved-form textarea {
  border-radius: 4px !important;
  color: #222222;
  width: 100%;
  height: 145px;
  border: none;
  border-color: #222222;
  font-size: 14px;
  line-height: 1.7;
  overflow: hidden;
  overflow-y: auto;
  background: transparent;
}

.get-involved-form .form-label {
  font-size: 12px;
}
.metrics-sub-text {
  margin-left: -10px;
}
.metrics-card {
  transition: 0.5s;
}
.metrics-card:hover {
  scale: 1.1;
}
.border-light-gray {
  border-color: #adb5bd !important;
}
.share-floating {
  bottom: 145px;
  right: 0px;
  z-index: 1030;
  border-radius: 10px 0px 0px 10px;
  width: 34px;
}

.generated-popup-box.modal-custom {
  overflow: visible !important;
  display: flex;
  flex-direction: column;
}

.embedded-webform-container {
  overflow: visible;
}

.embedded-webform-container select {
  position: relative;
  z-index: 1050;
}

.anchor-link {
  text-decoration: underline;
  color: white;
}

/* Hide ybug on smaller devices */
@media only screen and (max-width: 768px) {
  #__ybug-launcher,
  .ybug-launcher--right-middle {
    display: none !important;
  }
}
