/* Notification page */

.page--notifications {
  background: #f8fafc;
  overflow-x: clip;
}

.page--notifications main {
  padding-top: 0;
}

.nt-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 1rem) 0 clamp(3.5rem, 10vw, 5.2rem);
  color: var(--white);
  background: linear-gradient(135deg, #052d73 0%, #0646b8 52%, #0b63f6 100%);
}

.nt-hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / 0.12) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
}

.nt-hero__inner {
  position: relative;
  z-index: 1;
}

.nt-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.76);
}

.nt-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.nt-breadcrumb a:hover {
  color: var(--white);
}

.nt-hero__copy h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.nt-hero__copy p {
  margin: 0;
  max-width: 31rem;
  color: rgb(255 255 255 / 0.84);
  line-height: 1.55;
}

.nt-hero__bell {
  position: absolute;
  right: clamp(1rem, 10vw, 8rem);
  top: 1.7rem;
  width: clamp(6rem, 13vw, 10rem);
  color: rgb(255 255 255 / 0.14);
  transform: rotate(10deg);
}

.nt-content {
  position: relative;
  z-index: 2;
  margin-top: clamp(-1.5rem, -4vw, -2.35rem);
  padding-bottom: clamp(2rem, 6vw, 3rem);
}

.nt-filters {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: clamp(0.65rem, 2vw, 0.85rem);
  background: var(--white);
  box-shadow: 0 12px 32px rgb(15 23 42 / 0.07);
}

.nt-filters__tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  padding: clamp(0.75rem, 2.5vw, 0.85rem);
  border-bottom: 1px solid var(--gray-100);
  background: #fafbfd;
}

.nt-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-500);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nt-search:focus-within {
  border-color: rgb(37 99 235 / 0.45);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

.nt-search input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gray-800);
  font: inherit;
  font-size: 1rem;
  touch-action: manipulation;
}

.nt-filter-field {
  display: grid;
  gap: 0.35rem;
}

.nt-filter-field__label {
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nt-filter-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.nt-filter-field__control select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 2.35rem 0 0.95rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-800);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nt-filter-field__control select:focus {
  border-color: rgb(37 99 235 / 0.45);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
  outline: 0;
}

.nt-filter-field__chevron {
  position: absolute;
  right: 0.95rem;
  color: var(--gray-500);
  pointer-events: none;
}

.nt-filter-field--category,
.nt-filter-field--exam-mobile {
  display: none;
}

.nt-exam-filter--desktop {
  display: none;
  gap: 0.55rem;
  padding: 0.8rem clamp(0.75rem, 2.5vw, 0.85rem);
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}

.nt-exam-filter__label {
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nt-exam-filter__track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nt-exam-chip {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nt-exam-chip:hover {
  border-color: var(--blue-400);
  color: var(--blue-500);
}

.nt-exam-chip.is-active {
  border-color: var(--blue-500);
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgb(37 99 235 / 0.28);
}

.nt-exam-chip.is-active:hover {
  color: var(--white);
}

.nt-filters__tabs {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nt-filters__tabs::-webkit-scrollbar {
  display: none;
}

.nt-filters__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 0 auto;
  min-width: max(7.5rem, 16%);
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: var(--gray-600);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  scroll-snap-align: start;
  transition: color 0.15s ease, background 0.15s ease;
}

.nt-filters__tab + .nt-filters__tab {
  box-shadow: inset 1px 0 0 var(--gray-100);
}

.nt-filters__tab:hover {
  color: var(--blue-500);
  background: rgb(37 99 235 / 0.03);
}

.nt-filters__tab.is-active {
  color: var(--blue-500);
  background: rgb(37 99 235 / 0.05);
}

.nt-filters__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--blue-500);
}

.nt-filters__tab .icon {
  flex-shrink: 0;
  opacity: 0.72;
}

.nt-filters__tab.is-active .icon {
  opacity: 1;
}

.nt-list {
  margin-top: clamp(0.75rem, 2.5vw, 1rem);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: clamp(0.65rem, 2vw, 0.7rem);
  background: var(--white);
}

.nt-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(0.75rem, 2.5vw, 1rem);
  align-items: start;
  padding: clamp(0.85rem, 2.5vw, 1rem) clamp(0.85rem, 3vw, 1.05rem);
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.16s;
  -webkit-tap-highlight-color: transparent;
}

.nt-item:last-child {
  border-bottom: 0;
}

.nt-item:hover {
  background: #f8fbff;
}

.nt-item[hidden] {
  display: none;
}

.nt-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.65rem;
}

.nt-item__icon--blue {
  color: #2563eb;
  background: rgb(37 99 235 / 0.1);
}

.nt-item__icon--green {
  color: #16a34a;
  background: rgb(22 163 74 / 0.1);
}

.nt-item__icon--amber {
  color: #d97706;
  background: rgb(245 158 11 / 0.12);
}

.nt-item__icon--purple {
  color: #7c3aed;
  background: rgb(124 58 237 / 0.1);
}

.nt-item__body {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.nt-item__label {
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nt-item__label--blue {
  color: #2563eb;
}

.nt-item__label--green {
  color: #16a34a;
}

.nt-item__label--amber {
  color: #d97706;
}

.nt-item__label--purple {
  color: #7c3aed;
}

.nt-item__title {
  color: var(--navy-900);
  font-size: clamp(0.9375rem, 2.8vw, 1rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.nt-item__desc {
  color: var(--gray-600);
  font-size: clamp(0.8125rem, 2.5vw, 0.86rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.nt-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.45rem;
  color: var(--gray-500);
  font-size: 0.78rem;
}

.nt-new {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgb(34 197 94 / 0.12);
  color: #16a34a;
  font-size: 0.68rem;
  font-weight: 900;
}

.nt-empty {
  margin-top: clamp(0.75rem, 2.5vw, 1rem);
  padding: 1rem;
  border: 1px dashed var(--gray-300);
  border-radius: clamp(0.65rem, 2vw, 0.7rem);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.9375rem;
  text-align: center;
}

.nt-pagination {
  margin-top: clamp(1rem, 3vw, 1.35rem);
  padding-top: clamp(0.85rem, 2.5vw, 1rem);
  border-top: 1px solid var(--gray-200);
}

.nt-pagination__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}

.nt-pagination__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.nt-pagination__summary {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.nt-pagination__range {
  color: var(--navy-900);
  font-weight: 700;
}

.nt-pagination__of {
  margin-left: 0.2rem;
}

.nt-pagination__per-page {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gray-600);
  font-size: 0.8125rem;
}

.nt-pagination__per-page-label {
  white-space: nowrap;
}

.nt-pagination__per-page-select {
  appearance: none;
  min-width: 3.75rem;
  padding: 0.4rem 1.85rem 0.4rem 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.55rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.55rem center / 0.75rem;
  color: var(--navy-900);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.nt-pagination__per-page-select:hover {
  border-color: #cbd5e1;
}

.nt-pagination__per-page-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.16);
}

.nt-pagination__controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--white);
}

.nt-pagination__pages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.nt-pagination__nav,
.nt-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--navy-900);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nt-pagination__nav:hover,
.nt-pagination__page:hover {
  background: rgb(37 99 235 / 0.08);
  color: var(--accent);
}

.nt-pagination__page.is-active {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 18px rgb(37 99 235 / 0.28);
}

.nt-pagination__page.is-active:hover {
  background: #1d4ed8;
  color: var(--white);
}

.nt-pagination__nav.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.nt-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .nt-pagination__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .nt-pagination__meta {
    width: 100%;
    justify-content: space-between;
  }

  .nt-pagination__controls {
    width: 100%;
    justify-content: space-between;
  }
}

.nt-subscribe {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(0.85rem, 2.5vw, 1.25rem);
  padding: clamp(0.9rem, 2.5vw, 1rem) clamp(0.9rem, 3vw, 1.1rem);
  border: 1px solid rgb(37 99 235 / 0.1);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgb(239 246 255), rgb(255 255 255));
}

.nt-subscribe__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgb(37 99 235 / 0.1);
  color: var(--blue-500);
}

.nt-subscribe__copy {
  display: grid;
  gap: 0.15rem;
  color: var(--gray-600);
  font-size: 0.86rem;
}

.nt-subscribe__copy strong {
  color: var(--navy-900);
  font-size: 0.95rem;
}

.nt-subscribe__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.45rem;
  padding: 0 1.25rem;
  background: var(--blue-500);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.nt-subscribe__button:hover {
  background: var(--navy-700);
}

@media (min-width: 901px) {
  .nt-filter-field--category,
  .nt-filter-field--exam-mobile {
    display: none;
  }

  .nt-exam-filter--desktop {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
  }

  .nt-filters__tabs--desktop {
    display: flex;
  }

  .nt-exam-filter__track {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 0.1rem;
  }

  .nt-exam-filter__track::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  .nt-filter-field--category,
  .nt-filter-field--exam-mobile {
    display: grid;
  }

  .nt-exam-filter--desktop {
    display: none;
  }

  .nt-filters__tabs--desktop {
    display: none;
  }

  .nt-subscribe {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nt-subscribe__button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nt-hero {
    padding-bottom: 3.25rem;
  }

  .nt-hero__copy p {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .nt-hero__bell {
    display: none;
  }

  .nt-item {
    grid-template-columns: 2.65rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
  }

  .nt-item__icon {
    grid-row: 1 / span 2;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.55rem;
  }

  .nt-item__icon .icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .nt-item__body {
    grid-column: 2;
  }

  .nt-item__meta {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .nt-subscribe {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nt-subscribe__icon {
    margin-inline: auto;
  }
}
