.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;
}

.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;
}

.donation-modal {
  inset: 0;
  z-index: 100;
}

.donation-form-container {
  max-width: 480px;
  background: #f9f9f9;
}

.donation-form-container .form-select,
.donation-form-container .form-text {
  background: white;
  border: none;
  font-size: 15px;
}
.donation-form-container .form-text {
  padding: 10px;
}
.donation-form-container .form-select {
  padding-left: 10px;
}
.form-select .nice-select-dropdown .detail ul:not(.list-reset) li:after {
  background: blue;
}
.donation-form-container .nice-select .nice-select-dropdown ul.list li:after,
.select2-selection ul li:after {
  content: none !important; /* removes the pseudo-element */
}

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

.amount-choice .form-radios,
.form-item-frequency .form-radios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.form-item-amount-choice {
  position: relative;
}

.form-item-amount-choice.full-width {
  grid-column: span 2;
}

.form-item-amount-choice input[type='radio'],
.form-item-frequency input[type='radio'] {
  display: none !important;
}

.form-item-amount-choice label {
  display: block;
  text-align: center;
  padding: 12px 20px;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
  font-weight: bold;
  font-size: 25px;
}

.form-item-amount-choice input[type='radio']:checked + label {
  background-color: #1d4ed8;
  color: #000;
  background: #f9e460;
  border: 0px;
}

.form-item-amount-choice label:hover {
  background-color: #000;
  color: #fff;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}
[id^='edit-amount-choice'] {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.1rem;
}

[id^='edit-amount-choice'] .form-item {
  flex: 0 0 calc(33.333% - 0.5rem);
}

[id^='edit-frequency'] {
  width: 60%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  background: #f9e460;
  border-radius: 50px;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  padding: 5px;
}
@media (max-width: 768px) {
  [id^='edit-amount-choice'] .form-item {
    flex: 0 0 calc(100%);
  }
  [id^='edit-frequency'] {
    width: 80%;
  }
}

[id^='edit-frequency']::before {
  content: '';
  position: absolute;
  height: calc(100% - 10px);
  width: 0;
  top: 5px;
  left: 0;
  border-radius: 40px;
  background-color: #1d4ed8;
  z-index: 0;
  transition: all 0.3s ease;
}

.form-item-frequency {
  margin-bottom: 0 !important;
  position: relative;
  z-index: 1;
}

.form-item-frequency label {
  cursor: pointer;
  transition: color 0.3s;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 40px;
  margin-bottom: 0 !important;
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--bs-btn-font-family);
}

.form-item-frequency input[type='radio']:checked + label {
  color: #fff;
  background-color: #000;
}

.form-item-frequency label:hover {
  background-color: #f3f4f6;
}

.form-item-anonymous,
.form-item-further-info,
.form-item-bequest {
  display: flex;
  gap: 0.5rem;
}

.form-item-anonymous label,
.form-item-further-info label,
.form-item-bequest label {
  margin-bottom: 0px;
}

.form-item-anonymous .form-checkbox,
.form-item-further-info .form-checkbox,
.form-item-bequest .form-checkbox {
  outline: 0px !important;
  width: 20px;
}

.messages--error {
  background: white;
  border: 0.5px solid #e53e3e;
  padding: 25px;
  margin: 15px;
}
.donation-form-container ul.messages__list {
  margin-bottom: 0px !important;
}

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;
}

.bg-donation {
  background-color: #f9f9f9;
}

.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;
}

.spinner {
  margin: 0 auto 20px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

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

#newsletter-loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  text-align: center;
  padding-top: 20%;
  font-size: 1.5em;
  color: #333;
}

/* theme related item card */

.theme_image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 78px;
  margin-top: 78px;
}

.theme_image_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 125px;
  height: 125px;
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.14);
}

.theme_image img {
  width: 100px;
}

.theme_card {
  background-image: url('/themes/custom/aas/assets/images/circles_grey.svg');
  background-position: bottom center;
  background-repeat: no-repeat;
}

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

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

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

.subscription-amount {
  font-size: 24px;
}

.breadcrumb-light a,
.breadcrumb-light li {
  color: white !important;
}

.donorList .accordion-item,
.donorList .accordion-item:last-child {
  border-bottom: 0px;
}

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