/* ============================================================================
   ICOPAD — Homepage v
   Full-bleed hero carousel + sectioned homepage. Mobile-first.
   Fixed: no horizontal overflow — hero fills viewport width without
   the 100vw scrollbar-width mismatch.
   ============================================================================ */

/* ═══════════════════════════════════════════════════════════════════════
   HERO CAROUSEL
   ═══════════════════════════════════════════════════════════════════════ */

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--gray-950);
  isolation: isolate;
}

.hero-carousel__viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: clamp(500px, 82vh, 800px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 700ms var(--ease-out),
              transform 900ms var(--ease-out),
              visibility 700ms var(--ease-out);
  will-change: opacity, transform;
  overflow: hidden;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 6000ms linear;
}
.hero-slide.is-active .hero-slide__bg img {
  transform: scale(1);
}

.hero-slide__bg--brand {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 90%, var(--gray-950)) 0%,
    var(--gray-950) 100%);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgb(11 10 10 / 0.30) 0%,
      rgb(11 10 10 / 0.45) 40%,
      rgb(11 10 10 / 0.88) 100%),
    linear-gradient(90deg,
      rgb(11 10 10 / 0.45) 0%,
      transparent 60%);
}

.hero-slide__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-inline: var(--gutter);
  padding-block: var(--space-12) var(--space-16);
  color: var(--gray-0);
}

.hero-slide__inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: hero-rise 700ms var(--ease-out) both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slide__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(255 255 255 / 0.9);
  flex-wrap: wrap;
}

.hero-slide__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-slide__title {
  font-size: clamp(1.875rem, 1.4rem + 3.2vw, 4rem);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--gray-0);
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}

.hero-slide__excerpt {
  font-size: clamp(0.9375rem, 0.9rem + 0.4vw, 1.1875rem);
  line-height: 1.55;
  color: rgb(255 255 255 / 0.88);
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero-slide__actions .btn {
  min-height: 48px;
  padding-inline: var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
}

.hero-slide__actions .btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 60%, transparent);
}
.hero-slide__actions .btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.hero-slide__actions .btn-secondary {
  background: rgb(255 255 255 / 0.10);
  color: var(--gray-0);
  border-color: rgb(255 255 255 / 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-slide__actions .btn-secondary:hover {
  background: rgb(255 255 255 / 0.20);
  border-color: rgb(255 255 255 / 0.40);
}

.hero-slide__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: rgb(255 255 255 / 0.70);
  margin: var(--space-2) 0 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
}
.hero-slide__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.hero-carousel__nav { display: none; }

.hero-carousel__dots {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgb(11 10 10 / 0.45);
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / 0.35);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              width var(--dur-fast) var(--ease-out);
}
.hero-carousel__dot:hover { background: rgb(255 255 255 / 0.65); }
.hero-carousel__dot.is-active {
  width: 22px;
  background: var(--brand);
}
.hero-carousel__dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.4);
}

@media (min-width: 768px) {
  .hero-carousel__viewport { height: clamp(560px, 84vh, 880px); }
  .hero-slide__content { padding-block: var(--space-16) var(--space-20); }
  .hero-slide__inner { gap: var(--space-5); }

  .hero-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgb(11 10 10 / 0.45);
    border: 1px solid rgb(255 255 255 / 0.20);
    border-radius: var(--radius-full);
    color: var(--gray-0);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
  }
  .hero-carousel__nav:hover {
    background: rgb(11 10 10 / 0.75);
    border-color: rgb(255 255 255 / 0.4);
  }
  .hero-carousel__nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(255 255 255 / 0.4);
  }
  .hero-carousel__nav--prev { left: var(--space-6); }
  .hero-carousel__nav--next { right: var(--space-6); }
}

/* ═══════════════════════════════════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════════════════════════════════ */

.home-stats {
  padding-block: var(--space-10);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.home-stats__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
}
@media (min-width: 640px) {
  .home-stats__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
}

.home-stats__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-align: center;
  position: relative;
}
.home-stats__value {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.home-stats__label {
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
}

@media (min-width: 640px) {
  .home-stats__item + .home-stats__item::before {
    content: "";
    position: absolute;
    left: calc(var(--space-8) / -2);
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION SHELL
   ═══════════════════════════════════════════════════════════════════════ */

.home-section { padding-block: var(--space-14); }
@media (min-width: 768px) {
  .home-section { padding-block: var(--space-20); }
}
@media (min-width: 1024px) {
  .home-section { padding-block: var(--space-24); }
}
.home-section + .home-section {
  border-top: 1px solid var(--border-subtle);
}

.home-section__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}
@media (min-width: 768px) {
  .home-section__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
  }
}

.home-section__head-text { max-width: 640px; }

.home-section__eyebrow {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin: 0 0 var(--space-2);
}

.home-section__title {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

.home-section__lead {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: var(--lh-base);
  margin: 0;
  text-wrap: pretty;
}

.home-section__cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  transition: gap var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.home-section__cta-link:hover {
  gap: var(--space-3);
  color: var(--brand-hover);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   TOPICS GRID
   ═══════════════════════════════════════════════════════════════════════ */

.home-topics__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 480px) { .home-topics__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .home-topics__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .home-topics__grid { grid-template-columns: repeat(4, 1fr); } }

.home-topic-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  text-decoration: none;
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.home-topic-card:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.home-topic-card__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.home-topic-card__name {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  text-wrap: pretty;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-topic-card__arrow {
  display: inline-flex;
  color: var(--text-subtle);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.home-topic-card:hover .home-topic-card__arrow {
  color: var(--brand);
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════════════
   EVENTS — featured + compact grid
   ═══════════════════════════════════════════════════════════════════════ */

.home-events__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 1024px) {
  .home-events__layout {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.event-feature { display: flex; flex-direction: column; }
.event-feature__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.event-feature__link:hover {
  border-color: var(--border-strong);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.event-feature__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
  overflow: hidden;
}
.event-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.event-feature__link:hover .event-feature__media img {
  transform: scale(1.04);
}
.event-feature__media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-subtle);
  background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg-subtle) 100%);
}

.event-feature__format {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: 0.25rem 0.7rem;
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: rgb(11 10 10 / 0.75);
  color: var(--gray-0);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.event-feature__format--online { background: color-mix(in srgb, var(--info-600) 85%, black); }
.event-feature__format--hybrid { background: color-mix(in srgb, var(--warning-600) 85%, black); }

.event-feature__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}
@media (min-width: 768px) {
  .event-feature__body { padding: var(--space-6); gap: var(--space-4); }
}

.event-feature__date {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.event-feature__title {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  text-wrap: pretty;
}

.event-feature__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

.event-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.event-feature__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.event-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand);
  transition: gap var(--dur-fast) var(--ease-out);
}
.event-feature__link:hover .event-feature__cta { gap: var(--space-3); }

.home-event-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .home-event-grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .home-event-grid--compact { grid-template-columns: 1fr; }
}

.event-card { display: flex; flex-direction: column; }
.event-card__link {
  display: flex;
  flex-direction: row;
  gap: var(--space-4);
  height: 100%;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.event-card__link:hover {
  border-color: var(--border-strong);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.event-card__media {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
  overflow: hidden;
}
@media (min-width: 640px) {
  .event-card__media { width: 110px; height: 110px; }
}
.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-card__media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-subtle);
  background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg-subtle) 100%);
}

.event-card__format {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  padding: 0.15rem 0.5rem;
  font-size: 0.5625rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  background: rgb(11 10 10 / 0.75);
  color: var(--gray-0);
}
.event-card__format--online { background: color-mix(in srgb, var(--info-600) 85%, black); }
.event-card__format--hybrid { background: color-mix(in srgb, var(--warning-600) 85%, black); }

.event-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  flex: 1;
}
.event-card__date {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.event-card__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--text);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card__meta {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  margin: auto 0 0;
}
.event-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTENT — featured post + list
   ═══════════════════════════════════════════════════════════════════════ */

.home-content__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 1024px) {
  .home-content__layout {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.content-feature { display: flex; flex-direction: column; }
.content-feature__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.content-feature__link:hover {
  border-color: var(--border-strong);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.content-feature__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
  overflow: hidden;
}
.content-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.content-feature__link:hover .content-feature__media img {
  transform: scale(1.04);
}
.content-feature__media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-subtle);
  background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg-subtle) 100%);
}

.content-feature__source {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: 0.25rem 0.7rem;
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.content-feature__source--official {
  background: color-mix(in srgb, var(--brand) 90%, black);
  color: var(--gray-0);
}
.content-feature__source--network {
  background: rgb(11 10 10 / 0.80);
  color: var(--gray-0);
}

.content-feature__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}
@media (min-width: 768px) {
  .content-feature__body { padding: var(--space-6); gap: var(--space-4); }
}

.content-feature__title {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  text-wrap: pretty;
}

.content-feature__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

.content-feature__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  flex-wrap: wrap;
}
.content-feature__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-subtle);
}

.content-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand);
  transition: gap var(--dur-fast) var(--ease-out);
}
.content-feature__link:hover .content-feature__cta { gap: var(--space-3); }

.content-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.content-list__item { display: flex; }
.content-list__link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.content-list__link:hover {
  border-color: var(--brand);
  text-decoration: none;
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
}
.content-list__media {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-muted);
}
.content-list__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-list__media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-subtle);
  background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg-subtle) 100%);
}
.content-list__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  flex: 1;
}
.content-list__source {
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
}
.content-list__source--official { color: var(--brand); }
.content-list__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.content-list__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  flex-wrap: wrap;
}
.content-list__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-subtle);
}
.content-list__arrow {
  display: inline-flex;
  color: var(--text-subtle);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.content-list__link:hover .content-list__arrow {
  color: var(--brand);
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════════════
   ORGANISATIONS
   ═══════════════════════════════════════════════════════════════════════ */

.org-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px)  { .org-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .org-grid { grid-template-columns: repeat(4, 1fr); } }

.org-card { display: flex; flex-direction: column; }
.org-card__link {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--text);
  align-items: flex-start;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.org-card__link:hover {
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.org-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.org-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-1);
}
.org-card__logo span {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--brand);
}
.org-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  flex: 1;
}
.org-card__name {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.org-card__country {
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin: 0;
}
.org-card__desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin: var(--space-1) 0 0;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════
   OPPORTUNITIES
   ═══════════════════════════════════════════════════════════════════════ */

.opps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.opp-item__link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "type     arrow"
    "main     arrow"
    "deadline deadline";
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.opp-item__link:hover {
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .opp-item__link {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "main deadline arrow";
    gap: var(--space-6);
    padding: var(--space-5) var(--space-6);
  }
}
.opp-item__type-badge {
  grid-area: type;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .opp-item__type-badge { display: none; }
}
.opp-item__main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.opp-item__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--text);
  text-wrap: pretty;
}
.opp-item__provider {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  margin: 0;
}
.opp-item__deadline {
  grid-area: deadline;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
}
@media (min-width: 768px) {
  .opp-item__deadline {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding-top: 0;
    border-top: 0;
    text-align: right;
  }
}
.opp-item__deadline-label {
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.opp-item__deadline.is-urgent .opp-item__deadline-label { color: var(--error); }
.opp-item__deadline.is-closed .opp-item__deadline-label {
  color: var(--text-subtle);
  text-decoration: line-through;
}
.opp-item__deadline-date { color: var(--text-subtle); }
.opp-item__arrow {
  grid-area: arrow;
  display: inline-flex;
  color: var(--text-subtle);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.opp-item__link:hover .opp-item__arrow {
  color: var(--brand);
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════════════
   JOIN CTA
   ═══════════════════════════════════════════════════════════════════════ */

.home-join {
  position: relative;
  padding-block: var(--space-16);
  overflow: hidden;
  isolation: isolate;
  color: var(--gray-0);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 92%, black) 0%,
    color-mix(in srgb, var(--brand) 60%, var(--gray-950)) 100%);
}
@media (min-width: 768px) {
  .home-join { padding-block: var(--space-20); }
}
.home-join__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 0%,
      rgb(255 255 255 / 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 100%,
      rgb(255 255 255 / 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.home-join__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
@media (min-width: 1024px) {
  .home-join__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
  }
}
.home-join__content { flex: 1; max-width: 720px; }
.home-join__eyebrow {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(255 255 255 / 0.85);
  margin: 0 0 var(--space-3);
}
.home-join__title {
  font-size: clamp(1.5rem, 1.3rem + 1.6vw, 2.75rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.home-join__text {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: rgb(255 255 255 / 0.88);
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.home-join__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  flex-shrink: 0;
}
.home-join__actions .btn {
  min-height: 52px;
  padding-inline: var(--space-6);
  border-radius: var(--radius-full);
}
.home-join__actions .btn-primary {
  background: var(--gray-0);
  color: var(--brand);
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.35);
}
.home-join__actions .btn-primary:hover {
  background: rgb(255 255 255 / 0.95);
  transform: translateY(-1px);
}
.home-join__actions .btn-secondary {
  background: rgb(255 255 255 / 0.12);
  color: var(--gray-0);
  border-color: rgb(255 255 255 / 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.home-join__actions .btn-secondary:hover {
  background: rgb(255 255 255 / 0.22);
  border-color: rgb(255 255 255 / 0.5);
}
@media (max-width: 480px) {
  .home-join__actions { flex-direction: column; width: 100%; }
  .home-join__actions .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════════════════ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-12) var(--space-6);
  text-align: center;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
}
.empty-state svg { color: var(--text-subtle); }
.empty-state p { margin: 0; font-size: var(--fs-sm); }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — small screens
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .hero-carousel__viewport { height: clamp(460px, 74vh, 620px); }
  .hero-slide__inner { gap: var(--space-3); }
  .home-section { padding-block: var(--space-12); }
  .home-section__head { margin-bottom: var(--space-8); }

  .event-feature__body,
  .content-feature__body,
  .opp-item__link,
  .org-card__link { padding: var(--space-4); }

  .content-list__media { width: 56px; height: 56px; }
  .event-card__media { width: 76px; height: 76px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide__bg img,
  .event-feature__media img,
  .content-feature__media img,
  .event-card__media img,
  .content-list__media img,
  .hero-carousel__dot {
    transition-duration: 0.01ms !important;
  }
  .hero-slide.is-active .hero-slide__bg img { transform: scale(1.02); }
}