/* ======================================================================
   Header (navy strip + menu) and /hackathons redesign: events title row,
   filter panel, sort bar, new card (.jada-card2).
   Brand palette only (navy / teal / plum / orange / green).
   ====================================================================== */

/* ---------- Header: navy top strip + menu in brand colors ---------- */
.jada-header__toolbar {
  background: var(--brand-navy);
  border-bottom: none;
  color: #fff;
  padding-top: .4rem;
  padding-bottom: .4rem;
}

.jada-header__bankname {
  margin-inline-end: auto;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
}

.jada-header__toolbar .jada-toolbar-btn,
.jada-header__toolbar .lang-switch a,
.jada-header__toolbar .jada-globe-icon {
  color: #fff;
}

.jada-header__toolbar .jada-toolbar-btn:hover,
.jada-header__toolbar .jada-toolbar-btn:focus-visible {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.jada-header__toolbar .lang-switch a[aria-current="true"],
.jada-header__toolbar .lang-switch a.is-active {
  color: var(--brand-cyan);
}

.jada-header__toolbar .sep {
  background: rgba(255, 255, 255, .35);
}

.jada-header__nav ul {
  gap: 2rem;
}

.jada-header__nav a {
  color: var(--brand-navy);
  font-weight: 600;
  padding-bottom: .15rem;
  border-bottom: 2px solid transparent;
}

.jada-header__nav a:hover,
.jada-header__nav a.is-active,
.jada-header__nav a[aria-current="page"] {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

/* ---------- /hackathons: title row ---------- */
.jada-pagetitle-events .jada-pagetitle-plain__row {
  align-items: flex-end;
}

.jada-pagetitle-events .jada-page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.jada-listing-header {
  color: var(--text-color-secondary);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.jada-btn--icon {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* ---------- /hackathons: layout (filter panel + summary/sort + results) ---------- */
.jada-hackathon-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  column-gap: 1.5rem;
  row-gap: 1rem;
  align-items: start;
  margin-top: .5rem;
}

.jada-hackathon-layout__filters,
.jada-hackathon-layout__filters form {
  display: contents;
}

.jada-hackathon-layout .jada-filter-bar {
  grid-column: 1;
  grid-row: 1 / span 3;
  gap: 1.1rem;
  padding: 1.4rem;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 64, 102, .05);
}

.jada-results-summary {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  color: var(--text-color-secondary);
  font-size: .95rem;
}

.jada-sortbar {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.jada-sortbar label {
  margin: 0;
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-color-secondary);
}

.jada-sortbar select {
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: .45rem 2rem .45rem .9rem;
  background-color: var(--surface-0);
  color: var(--brand-navy);
  font-family: inherit;
  font-weight: 600;
}

.jada-hackathon-layout__results {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

@media (max-width: 991px) {
  .jada-hackathon-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .jada-hackathon-layout .jada-filter-bar,
  .jada-results-summary,
  .jada-sortbar,
  .jada-hackathon-layout__results {
    grid-column: 1;
    grid-row: auto;
  }

  .jada-hackathon-layout .jada-filter-bar {
    position: static;
  }
}

/* ---------- Filter panel ---------- */
.jada-filter-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jada-filter-bar__heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.jada-filter-bar__clear {
  color: var(--brand-orange);
  font-size: .9rem;
  font-weight: 600;
}

.jada-filter-bar__clear:hover {
  color: #d85a30;
}

.jada-filter-bar .form-item > label,
.jada-filter-bar__status-label {
  color: var(--brand-navy);
}

.jada-filter-bar input[type="text"],
.jada-filter-bar input[type="date"],
.jada-filter-bar select {
  border-radius: 10px;
  background-color: #f7f9fb;
}

.jada-filter-bar input[type="text"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23515a5f' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: left .8rem center;
  padding-left: 2.4rem;
}

html[dir="ltr"] .jada-filter-bar input[type="text"] {
  background-position: right .8rem center;
  padding-left: .85rem;
  padding-right: 2.4rem;
}

/* Event-type checkboxes with count badges */
.jada-filter-bar .form-checkboxes {
  gap: .75rem;
}

.jada-filter-bar .form-checkboxes .form-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .7rem;
}

.jada-filter-bar .form-checkboxes .form-item label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .95rem;
  cursor: pointer;
}

.jada-opt-count {
  min-width: 1.7rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--text-color-secondary);
  font-size: .75rem;
  text-align: center;
}

.jada-filter-bar input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #b9c5ce;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.jada-filter-bar input[type="checkbox"]:checked {
  background: var(--brand-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--brand-navy);
}

/* Status pills (client-side filter) */
.jada-filter-bar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.jada-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .35rem .85rem;
  border: 1px solid #d5dde4;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-navy);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}

.jada-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.jada-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.jada-pill--active .dot { background: var(--brand-green); }
.jada-pill--soon .dot { background: var(--brand-orange); }
.jada-pill--finished .dot { background: #000; }

.jada-pill:has(input:checked) {
  background: #e8f0f6;
  border-color: var(--brand-navy);
}

/* ---------- Card ---------- */
.jada-card2 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid #e3e9ee;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.jada-card2:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15, 64, 102, .12);
}

.jada-card2__head {
  --c: var(--brand-navy);
  position: relative;
  display: block;
  height: 150px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 72%, #000));
}

.jada-card2__head:hover { color: #fff; }
.jada-card2__head--0 { --c: var(--brand-navy); }
.jada-card2__head--1 { --c: #0b6b78; }
.jada-card2__head--2 { --c: var(--brand-plum); }
.jada-card2__head--3 { --c: #1f7a5a; }
.jada-card2__head--4 { --c: var(--brand-navy-dark); }
.jada-card2__head--5 { --c: #b3492a; }

.jada-card2__head::before,
.jada-card2__head::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .18);
}

.jada-card2__head::before {
  width: 190px;
  height: 190px;
  inset-inline-end: -45px;
  bottom: -75px;
}

.jada-card2__head::after {
  width: 96px;
  height: 96px;
  inset-inline-end: 2px;
  bottom: -28px;
}

.jada-card2__brand {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  font-size: .8rem;
  font-weight: 700;
  opacity: .92;
}

.jada-card2__date {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.1rem;
  padding: .3rem .6rem;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-navy);
  line-height: 1.15;
}

.jada-card2__date .day { font-size: 1.15rem; font-weight: 800; }
.jada-card2__date .month { font-size: .68rem; color: var(--text-color-secondary); }

.jada-card2__city {
  position: absolute;
  bottom: 1rem;
  inset-inline-start: 1rem;
  inset-inline-end: 1rem;
  z-index: 1;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
}

.jada-card2__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem;
}

.jada-card2__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.jada-card2__type,
.jada-card2__status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.jada-card2__type {
  background: #e6f1f8;
  color: var(--brand-navy);
}

.jada-card2__type div { display: inline; }

.jada-card2__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.jada-card2__status--active { background: #e3f6ee; color: #1f7a5a; }
.jada-card2__status--active::before { background: var(--brand-green); }
.jada-card2__status--soon { background: #fdeee8; color: #b3492a; }
.jada-card2__status--soon::before { background: var(--brand-orange); }
.jada-card2__status--finished { background: #eceff1; color: #000; }
.jada-card2__status--finished::before { background: #000; }

.jada-card2__title {
  margin: .75rem 0 .5rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

.jada-card2__title a { color: var(--brand-navy); }
.jada-card2__title a:hover { color: var(--brand-orange); }

.jada-card2__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  color: var(--text-color-secondary);
  font-size: .82rem;
}

.jada-card2__meta li {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.jada-card2__meta svg { flex: none; }

.jada-card2__actions {
  display: flex;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1.1rem;
}

.jada-card2__btn {
  flex: 1;
  text-align: center;
  padding: .55rem .5rem;
  border-radius: 9px;
  font-size: .85rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.jada-card2__btn--primary { background: var(--brand-navy); color: #fff; }
.jada-card2__btn--primary:hover { background: var(--brand-navy-dark); color: #fff; }
.jada-card2__btn--soft { background: #e9eef3; color: var(--brand-navy); }
.jada-card2__btn--soft:hover { background: #dbe4ec; color: var(--brand-navy); }
.jada-card2__btn--outline { background: #fff; border-color: #cfd8df; color: var(--brand-navy); }
.jada-card2__btn--outline:hover { border-color: var(--brand-navy); color: var(--brand-navy); }

/* Specificity fixes over earlier .jada-filter-bar rules */
.jada-sortbar .form-item > label {
  display: none;
}

.jada-sortbar .form-item {
  margin: 0;
}

.jada-filter-bar .form-checkboxes input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

/* Pager */
.jada-hackathon-layout__results .pager__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.jada-hackathon-layout__results .pager__item a,
.jada-hackathon-layout__results .pager__item.is-active a {
  display: inline-block;
  min-width: 2.25rem;
  padding: .4rem .8rem;
  border: 1px solid #d5dde4;
  border-radius: 9px;
  background: #fff;
  color: var(--brand-navy);
  font-weight: 600;
  text-align: center;
}

.jada-hackathon-layout__results .pager__item.is-active a {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
}

.jada-hackathon-layout__results .pager__item a:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.jada-filter-bar legend,
.jada-filter-bar .fieldset-legend,
.jada-filter-bar .form-item-type > label {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--brand-navy);
}

/* Title row sits inside .jada-main.container already: drop the nested
   container's side padding so the title lines up with the subtitle at the
   start and the button with the cards at the end. */
.jada-pagetitle-plain__inner.container {
  padding-right: 0;
  padding-left: 0;
}

/* Share icons on the shared page header (light background version) */
.jada-pagetitle-events .jada-share__label {
  color: var(--text-color-secondary);
  opacity: 1;
}

.jada-pagetitle-events .jada-share__icon {
  background: #fff;
  color: var(--brand-navy);
  border: 1px solid #cfd8df;
}

.jada-pagetitle-events .jada-share__icon:hover,
.jada-pagetitle-events .jada-share__icon:focus-visible {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
}

.jada-pagetitle-events .jada-share__icon.is-copied {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}

.jada-pagetitle-events .jada-page-title {
  margin: 0;
}

/* Summary and sort share one grid cell: keep the summary from stretching
   over (and blocking clicks on) the sort select. */
.jada-results-summary {
  justify-self: start;
}

.jada-sortbar {
  position: relative;
  z-index: 2;
}

/* ---------- Countdown (header + hackathon hero) ---------- */
.jada-cd {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.jada-cd__label {
  font-size: .85rem;
  font-weight: 700;
}

.jada-cd__units {
  display: inline-flex;
  gap: .4rem;
  direction: ltr;
}

.jada-cd__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
  padding: .3rem .4rem;
  border-radius: 8px;
  line-height: 1.1;
}

.jada-cd__unit b {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.jada-cd__unit i {
  font-style: normal;
  font-size: .62rem;
  opacity: .85;
}

/* Header: navy pill with the event title above the digits */
.jada-header__countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
  padding: .5rem .9rem;
  border-radius: 12px;
  background: var(--brand-navy);
  color: #fff;
}

.jada-header__countdown-title {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

.jada-header__countdown-title:hover {
  color: var(--brand-cyan);
}

.jada-cd--header .jada-cd__label {
  color: var(--brand-amber);
}

.jada-cd--header .jada-cd__unit {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* Hero banner on the hackathon page, opposite the date */
.jada-hackathon-hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.jada-hackathon-hero__bottom .jada-hackathon-hero__date {
  margin-top: 0;
}

.jada-cd--hero {
  color: #fff;
}

.jada-cd--hero .jada-cd__label {
  font-size: .95rem;
}

.jada-cd--hero .jada-cd__unit {
  min-width: 3.6rem;
  padding: .45rem .5rem;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, .25);
}

.jada-cd--hero .jada-cd__unit b {
  font-size: 1.5rem;
}

.jada-cd--ended .jada-cd__label {
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
}

@media (max-width: 991px) {
  .jada-header__countdown-title {
    max-width: 160px;
  }
}

/* ---------- Hackathon page: rules / conditions / stages boxes ---------- */
.jada-info-boxes {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.jada-info-box {
  --accent: var(--brand-navy);
  height: 100%;
  padding: 1.4rem 1.4rem 1.2rem;
  background: var(--surface-card);
  border: 1px solid #e3e9ee;
  border-top: 4px solid var(--accent);
  border-radius: 14px;
}

.jada-info-box--rules { --accent: var(--brand-navy); }
.jada-info-box--conditions { --accent: var(--brand-orange); }
.jada-info-box--stages { --accent: var(--brand-green); }

.jada-info-box__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.jada-info-box__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
}

.jada-info-box__text {
  margin: 0 0 .9rem;
  color: var(--text-color-secondary);
  line-height: 1.7;
}

.jada-info-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.jada-info-box__list li {
  position: relative;
  padding-inline-start: 1.5rem;
  line-height: 1.6;
  font-size: .95rem;
}

.jada-info-box__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .5em;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--accent);
}
