.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--spin-bg-nav);
  transition: height 0.3s ease;
}

.site-header.is-expanded {
  --header-height: 9rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo__img,
.custom-logo {
  height: 40px;
  width: auto;
  transition: height 0.3s ease;
}

.site-header.is-expanded .site-logo__img,
.site-header.is-expanded .custom-logo {
  height: 108px;
}

.primary-nav-wrap {
  display: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a,
.primary-nav .menu-item-has-children > a {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
}

.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.mobile-nav__menu .current-menu-item > a,
.mobile-nav__menu .current-menu-ancestor > a {
  color: var(--spin-bg-dark);
}

.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  margin-top: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 14rem;
  list-style: none;
}

.primary-nav .menu-item-has-children {
  position: relative;
}

.primary-nav .menu-item-has-children::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.5rem;
}

.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children.is-open .sub-menu {
  display: block;
}

.primary-nav .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  text-transform: none;
  font-weight: 500;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-switcher__item {
  padding: 0.25rem 0.5rem;
  opacity: 0.5;
}

.lang-switcher__item.is-active {
  opacity: 1;
}

.site-header__toggle {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle-icon::before {
  content: '☰';
  font-size: 1.25rem;
}

.site-header__toggle[aria-expanded='true'] .site-header__toggle-icon::before {
  content: '✕';
}

.mobile-nav {
  background: var(--spin-bg-nav);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
}

.mobile-nav__menu a {
  display: block;
  padding: 0.75rem 1.5rem;
}

.event-banner {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--spin-bg-dark);
  color: #fff;
  line-height: 1.4;
  transition: transform 300ms ease-in-out, top 300ms ease;
}

.event-banner.is-hidden {
  transform: translateY(-100%);
}

.event-banner__inner {
  position: relative;
}

.event-banner__slide {
  display: none;
}

.event-banner__slide.is-active {
  display: block;
}

.event-banner__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
}

.event-banner__body {
  flex: 1;
  min-width: 0;
}

.event-banner__actions {
  flex-shrink: 0;
}

.event-banner__meta {
  color: var(--spin-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.5rem;
}

.event-banner__title {
  color: #fff;
  margin: 0 0 0.25rem;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
}

.event-banner__excerpt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  max-width: 32rem;
  margin: 0;
}

.event-banner__link {
  color: inherit;
  display: block;
}

.event-banner__cta {
  font-size: 0.875rem;
  padding: 0.75rem 1.75rem;
}

.event-banner__controls {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
  z-index: 1;
}

.event-banner__prev,
.event-banner__next {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
}

.is-front-page .event-banner {
  position: relative;
  top: auto;
  z-index: auto;
  display: grid;
  grid-template-rows: 1fr;
  margin-top: var(--header-height);
  transform: none;
  transition: grid-template-rows 300ms ease-in-out, margin-top 300ms ease;
  background: #ffffff;
  color: var(--spin-text-muted);
}

.is-front-page .event-banner__meta {
  color: var(--spin-burgundy);
}

.is-front-page .event-banner__title {
  color: var(--spin-burgundy);
}

.is-front-page .event-banner__excerpt {
  color: var(--spin-text-muted);
}

.is-front-page .event-banner__prev,
.is-front-page .event-banner__next {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--spin-burgundy);
}

.is-front-page .event-banner__content {
  padding: 1rem 0;
}

.is-front-page .target-groups-section.section-padding {
  padding-top: 2rem;
}

.is-front-page .event-banner__inner {
  overflow: hidden;
  min-height: 0;
}

.is-front-page .event-banner.is-hidden {
  grid-template-rows: 0fr;
  transform: none;
}

@media (min-width: 768px) {
  .event-banner__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 0;
  }
}

.hero-section {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 2rem;
  margin-top: calc(var(--header-height) + var(--banner-height) + 1rem);
}

.is-front-page .hero-section {
  margin-top: 0.5rem;
  transition: margin-top 300ms ease-in-out;
}

.is-front-page .hero-section:first-child {
  margin-top: calc(var(--header-height) + 1rem);
}

.hero-section__card {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--spin-bg-dark);
}

.hero-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.72) 0%,
    rgba(10, 10, 10, 0.45) 50%,
    rgba(10, 10, 10, 0.12) 100%
  );
}

.hero-section__content {
  position: relative;
  padding: 5rem 2rem;
}

.hero-section__label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.landing-theme .hero-section__title {
  color: #fff;
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 2.5rem;
}

.hero-section__subtitle {
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 2.5rem;
}

.hero-section__cta {
  margin: 0;
}

@media (min-width: 640px) {
  .hero-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 768px) {
  .hero-section__content {
    padding: 7rem 4rem;
  }
}

.hero-section__label {
  font-size: 1.125rem;
}

.hero-section__subtitle {
  font-size: 1.25rem;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-section__content {
    padding: 9rem 6rem;
  }
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  border-radius: 2rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-card__badge {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
}

.highlight-card__title {
  font-size: 1.75rem;
  line-height: 1.2;
}

.highlight-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.highlight-card__intro {
  font-size: 0.875rem;
}

.highlight-card__body {
  line-height: 1.6;
  flex: 1;
}

.highlight-card__btn {
  align-self: flex-start;
  margin-top: auto;
}

.highlight-card--photo {
  padding: 0;
  overflow: hidden;
}

.highlight-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.highlight-card__subitems {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.highlight-card__subitem {
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.4);
}

.highlight-card__subitem-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.highlight-card__subitem-meta {
  font-size: 0.75rem;
  color: var(--spin-text-subtle, #616161);
  margin: 0;
}

.highlight-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.highlight-card__stat {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--spin-accent);
  color: var(--spin-on-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.highlight-card__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--spin-text-muted);
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  transition: color 200ms ease;
}

.highlight-card__cta-link:hover {
  color: var(--spin-text, #1a1a1a);
}

.highlight-card__cta-arrow {
  line-height: 1;
}

.single-post__header {
  margin-bottom: 1.5rem;
}

.single-post__date {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--spin-text-muted);
}

.single-post__banner {
  margin-bottom: 1.5rem;
}

.single-post__banner img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.contact-section__inner {
  border-radius: 2rem;
  padding: 3rem;
  text-align: center;
}

.contact-section__email {
  margin: 0;
  max-width: 100%;
}

.contact-section__email .btn-spin-cyan {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  justify-content: center;
  line-height: 1.4;
}

.copy-email-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 10, 10, 0.45);
}

.copy-email-modal[hidden] {
  display: none;
}

.copy-email-modal__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 22rem;
  width: 100%;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.copy-email-modal__icon {
  display: inline-flex;
  color: #2d6a4f;
}

.copy-email-modal__text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--spin-burgundy);
}

.site-footer {
  background: var(--spin-bg-nav);
  padding: 3rem 0;
  margin-top: 0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.site-footer__logo {
  height: 48px;
}

.vision-mission__grid,
.values-grid,
.team-grid,
.focus-areas__grid {
  display: grid;
  gap: 1.5rem;
}

.vision-mission__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.values-grid,
.team-grid,
.focus-areas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.values-card,
.team-card,
.focus-areas__item,
.course-card,
.event-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.cookie-consent__decline {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--spin-text-muted);
}

.event-color-burgundy { border-left: 4px solid #6b2c3e; }
.event-color-primary { border-left: 4px solid var(--spin-accent); }
.event-color-accent { border-left: 4px solid #00fff0; }
.event-color-green { border-left: 4px solid #2d6a4f; }
.event-color-secondary { border-left: 4px solid #616161; }

@media (min-width: 1024px) {
  .primary-nav-wrap { display: block; }
  .site-header__toggle { display: none; }
  .mobile-nav { display: none !important; }
}

@media (max-width: 767px) {
  .highlights-grid,
  .site-footer__inner,
  .vision-mission__grid {
    grid-template-columns: 1fr;
  }

  .contact-section__inner {
    padding: 2rem 1.25rem;
  }

  .contact-section__email .btn-spin-cyan {
    font-size: 0.8125rem;
    padding: 0.625rem 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .site-footer__inner,
  .vision-mission__grid {
    grid-template-columns: 1fr;
  }

  .site-header__lang--desktop {
    display: none;
  }

  .mobile-nav__lang {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .mobile-nav:not([hidden]) {
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }
}

@media (min-width: 1024px) {
  .mobile-nav__lang {
    display: none;
  }
}

/* Hero section new buttons */
.hero-section__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Global Frontpage Utilities */
.bg-white {
  background-color: #ffffff;
}

.bg-light-gray {
  background-color: var(--spin-bg-page);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--spin-burgundy);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  text-align: left;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Target Groups */
.target-groups-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.target-groups-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 22rem));
  justify-content: center;
}

.target-groups-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.target-group-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.target-group-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
.target-group-card__icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.target-group-card__icon-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.target-group-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}
.target-group-card__desc {
  font-size: 0.875rem;
  color: var(--spin-text-muted);
  flex: 1;
  margin: 0;
}

@media (max-width: 1024px) {
  .target-groups-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .target-groups-grid {
    grid-template-columns: 1fr;
  }
}

/* What SPIN Does */
.what-spin-does-section__inner.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.what-spin-does-section__desc {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--spin-text-muted);
}
.what-spin-does-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.what-spin-does-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  background: var(--spin-bg-card);
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
}
.what-spin-does-list__item.is-accordion {
  display: block;
  padding: 0;
  interpolate-size: allow-keywords;
}

.what-spin-does-list__item.is-accordion::details-content {
  overflow: hidden;
  transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
}

.what-spin-does-list__item.is-accordion:not([open])::details-content {
  block-size: 0;
}

.what-spin-does-list__item.is-accordion[open]::details-content {
  block-size: auto;
}
.what-spin-does-list__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  font-size: 1.25rem;
  cursor: pointer;
  list-style: none;
}
.what-spin-does-list__summary::-webkit-details-marker {
  display: none;
}
.what-spin-does-list__summary::marker {
  content: '';
}
.what-spin-does-list__text {
  flex: 1;
}
.what-spin-does-list__chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.2rem;
  transition: transform 0.2s ease;
}
.what-spin-does-list__item.is-accordion[open] .what-spin-does-list__chevron {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}
.what-spin-does-list__comment {
  padding: 0 2rem 1.5rem 4.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--spin-text-muted);
}
.what-spin-does-list__comment > *:first-child {
  margin-top: 0;
}
.what-spin-does-list__comment > *:last-child {
  margin-bottom: 0;
}
.what-spin-does-list__comment p,
.what-spin-does-list__comment ul,
.what-spin-does-list__comment ol {
  margin: 0 0 0.75rem;
}
.what-spin-does-list__comment a {
  color: var(--spin-burgundy);
}
.what-spin-does-list__icon {
  color: var(--spin-burgundy);
  font-weight: bold;
  flex-shrink: 0;
}
.what-spin-does-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2rem;
  overflow: hidden;
}
.what-spin-does-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.what-spin-does-image-wrap--contain img {
  object-fit: contain;
}

@media (max-width: 1024px) {
  .what-spin-does-section__inner.grid-2-col {
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .what-spin-does-section__inner.grid-2-col {
    grid-template-columns: 1fr;
  }
}

/* Opportunities Grid */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.opportunity-card {
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.opportunity-card:hover {
  transform: translateY(-4px);
}
.opportunity-card__image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.opportunity-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.opportunity-card__content {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.opportunity-card__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.opportunity-card__title {
  margin: 0;
}
.opportunity-card__description {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  opacity: 0.75;
}
.opportunity-card__icon {
  flex-shrink: 0;
  color: var(--spin-burgundy);
}
@media (max-width: 768px) {
  .opportunities-grid {
    grid-template-columns: 1fr;
  }
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.news-card:hover {
  transform: translateY(-4px);
}
.news-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.news-card__title {
  margin: 0;
}
.news-card__date {
  font-size: 0.875rem;
  color: var(--spin-text-muted);
}
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
