:root {
  --sc-blue: #0093c9;
  --sc-dark: #172d39;
  --sc-soft: #eef8fb;
}

body {
  color: var(--sc-dark);
  font-family: "Nunito", sans-serif;
}

body.embedded-activity-preview {
  min-width: 0;
  padding: 0;
  background: #fff;
}

.embedded-activity-preview .program-section {
  padding: 1.5rem 0 2rem;
}

.embedded-activity-preview .program-section > .container {
  width: 100%;
  max-width: none;
}

.program-hero {
  background: url("../../img/newsc25/Banner_newweb_SC25.png") center / cover no-repeat;
}

.program-title {
  color: var(--sc-blue);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  text-align: center;
}

.program-section {
  padding-bottom: 5rem;
}

.search-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.search-toggle {
  min-width: 190px;
  border: 2px solid var(--sc-blue);
  color: var(--sc-blue);
  font-weight: 700;
  background: #fff;
}

.search-toggle:hover,
.search-toggle:focus-visible {
  border-color: var(--sc-blue);
  color: #fff;
  background: var(--sc-blue);
}

.filter-section {
  padding: 1.5rem;
  border: 1px solid #cbe8f2;
  border-radius: 1rem;
  background: var(--sc-soft);
}

.filter-section .form-control,
.filter-section .form-select {
  min-height: 48px;
  border-color: #b9dce8;
}

.filter-section .form-control:focus,
.filter-section .form-select:focus {
  border-color: var(--sc-blue);
  box-shadow: 0 0 0 0.2rem rgb(0 147 201 / 15%);
}

.filter-field {
  position: relative;
  padding-bottom: 1.6rem;
}

.filter-field .form-label {
  margin-bottom: 0.35rem;
  color: var(--sc-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.searchable-select {
  position: relative;
}

.searchable-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.searchable-select-toggle {
  overflow: hidden;
  padding-right: 2.25rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select-dropdown {
  position: absolute;
  z-index: 1050;
  top: calc(100% + 0.25rem);
  left: 0;
  width: max(100%, 250px);
  padding: 0.6rem;
  border: 1px solid #b9dce8;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 10px 28px rgb(18 63 80 / 20%);
}

.searchable-select-search {
  min-height: 40px !important;
  margin-bottom: 0.5rem;
}

.searchable-select-options {
  max-height: 240px;
  overflow-y: auto;
}

.searchable-select-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.35rem;
  color: var(--sc-dark);
  background: transparent;
  text-align: left;
}

.searchable-select-option:hover,
.searchable-select-option:focus-visible {
  background: var(--sc-soft);
}

.searchable-select-option.is-selected {
  color: #fff;
  background: var(--sc-blue);
}

.filter-clear {
  position: absolute;
  right: calc(var(--bs-gutter-x) * 0.5);
  top: -0.15rem;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #52656e;
  font-size: 1rem;
  line-height: 1.35rem;
  background: transparent;
  text-align: center;
}

.filter-clear:hover,
.filter-clear:focus-visible {
  color: var(--sc-blue);
  background: rgb(0 147 201 / 10%);
}

.filter-clear-select {
  z-index: 2;
  top: 50%;
  right: 2.15rem;
  transform: translateY(-50%);
}

.filter-action {
  align-self: end;
  padding-bottom: 1.6rem;
}

.btn-search,
.page-link {
  border-color: var(--sc-blue);
  color: #fff !important;
  background: var(--sc-blue);
}

.btn-search:hover,
.page-link:hover {
  border-color: #0079a6;
  background: #0079a6;
}

.btn-reset {
  min-height: 48px;
  border: 2px solid var(--sc-blue);
  color: var(--sc-blue);
  font-weight: 700;
  background: #fff;
}

.activity-card {
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 8px 26px rgb(18 63 80 / 12%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 32px rgb(18 63 80 / 19%);
}

.activity-card img {
  width: 100%;
  height: 220px;
  background: #e9f4f7;
  object-fit: cover;
}

.activity-card .card-title {
  color: var(--sc-dark);
  font-weight: 800;
}

.activity-meta,
.results-summary {
  color: #52656e;
}

.activity-meta {
  font-size: 0.94rem;
}

.results-order {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.activity-description {
  color: #334b55;
}

.badge-format {
  color: #087498;
  background: #dff3fa;
}

.badge-cancelled {
  background: #bd2c38;
}

.badge-sold-out {
  color: #29200a;
  background: #f4b942;
}

.pagination .page-link {
  min-width: 42px;
  border-radius: 0.55rem !important;
  text-align: center;
}

.pagination .active .page-link {
  border-color: var(--sc-dark);
  background: var(--sc-dark);
}

.detail-image {
  width: 100%;
  max-height: 460px;
  border-radius: 0.8rem;
  object-fit: contain;
  background: #f4f8fa;
}

.detail-copy {
  font-size: 1.08rem;
  line-height: 1.75;
  white-space: pre-line;
}

.detail-panel {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--sc-soft);
}

.activity-expired {
  margin-bottom: 2rem;
  font-weight: 800;
}

.detail-map-link {
  display: block;
  margin: 1.25rem 0;
  color: #334b55;
  text-decoration: none;
}

.detail-map-link:hover {
  color: var(--sc-blue);
}

.detail-media-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-actions {
  margin-top: 1rem;
}

.detail-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.detail-dates {
  display: flex;
  gap: 0.55rem;
}

.detail-date {
  display: grid;
  min-width: 76px;
  overflow: hidden;
  border: 1px solid #c7e3ed;
  border-radius: 0.65rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 5px 14px rgb(18 63 80 / 9%);
}

.detail-date span {
  padding: 0.25rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #013f6b;
}

.detail-date strong {
  color: var(--sc-dark);
  font-size: 2rem;
  line-height: 1.15;
}

.detail-date b {
  padding-bottom: 0.35rem;
  color: var(--sc-blue);
  font-size: 0.78rem;
}

.detail-title {
  margin: 0;
  color: var(--sc-dark);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 800;
}

.detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 1.15rem 0;
  border-top: 1px solid #dce9ed;
  border-bottom: 1px solid #dce9ed;
  list-style: none;
}

.detail-summary li {
  color: #405862;
}

.detail-summary a,
.detail-boxes a,
.detail-description a {
  color: #087498;
}

.detail-classification {
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
  border-radius: 0.65rem;
  background: var(--sc-soft);
  line-height: 1.75;
}

.detail-boxes section {
  height: 100%;
}

.detail-boxes h3,
.detail-organisations h3 {
  margin-bottom: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  background: #013f6b;
}

.detail-boxes p {
  margin-bottom: 0.45rem;
}

.detail-boxes-after-description {
  margin-top: 2rem;
}

.detail-description {
  margin-top: 2.75rem;
  color: #263f49;
  font-size: 1.04rem;
  line-height: 1.75;
}

.detail-description h2,
.detail-description h3,
.detail-description h4 {
  margin-top: 1.6rem;
  color: var(--sc-dark);
  font-weight: 800;
}

.detail-organisations {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dce9ed;
}

.organisation {
  margin-bottom: 1.25rem;
}

.organisation img {
  display: block;
  width: auto;
  max-width: 200px;
  max-height: 110px;
  margin-bottom: 0.55rem;
  object-fit: contain;
}

.organisation p {
  margin: 0;
  color: #405862;
  font-size: 0.92rem;
}

.activity-modal .modal-dialog {
  width: min(95vw, 1320px);
  max-width: 1320px;
}

.activity-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 22px 65px rgb(9 37 49 / 30%);
}

.activity-modal .modal-header {
  padding: 1rem 1.25rem;
  border-bottom-color: #dce9ed;
  background: #fff;
}

.activity-modal .modal-title {
  overflow: hidden;
  color: var(--sc-dark);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-modal .modal-body {
  padding: clamp(1rem, 3vw, 2rem);
}

.activity-modal-loading {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  color: #52656e;
  font-weight: 700;
}

.activity-card {
  cursor: pointer;
}

footer section a {
  color: #000 !important;
  text-decoration: none !important;
}

footer section a:hover {
  color: var(--sc-blue) !important;
}

@media (max-width: 767px) {
  .program-section {
    padding-top: 2rem;
  }

  .filter-section {
    padding: 1rem;
  }

  .activity-card img {
    height: 200px;
  }

  .detail-heading {
    grid-template-columns: 1fr;
  }

  .detail-dates {
    order: 2;
  }

  .activity-modal .modal-dialog {
    width: auto;
    margin: 0.5rem;
  }

  .activity-modal .modal-body {
    padding: 1rem;
  }
}

@media print {
  .program-hero,
  .detail-back,
  .detail-actions,
  footer {
    display: none !important;
  }

  .program-section {
    padding: 0;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .activity-detail {
    color: #000;
  }

  .detail-image {
    max-height: 330px;
  }

  a {
    color: #000 !important;
    text-decoration: none !important;
  }
}
