/* atividades.css
 * Atividades section: department filters, highlights carousel and feed cards.
 */

.activities-copy {
  max-width: 50ch;
}

.activities-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.activities-tabs::-webkit-scrollbar {
  display: none;
}

.activities-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(205, 216, 231, 0.9);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-subtitle);
}

.activities-tab.is-active {
  color: var(--ink);
  border-color: rgba(212, 160, 43, 0.42);
  box-shadow: 0 12px 28px rgba(34, 48, 70, 0.08);
}

.activities-tab:hover {
  transform: translateY(-1px);
}

.activities-see-all {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid rgba(212, 160, 43, 0.28);
  border-radius: 20px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  margin-bottom: 4px;
  font-family: var(--font-subtitle);
}

.activities-see-all svg {
  width: 12px;
  height: 12px;
}

.activities-see-all:hover {
  background: rgba(212, 160, 43, 0.08);
  border-color: var(--brand);
}

.activities-highlights-host {
  margin-bottom: 12px;
}

.activities-highlight-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.activities-highlight-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.activities-highlight-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 160, 43, 0.48);
}

.activities-highlight-window {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(204, 216, 232, 0.88);
  background: #f4f8fe;
  box-shadow: 0 24px 54px rgba(34, 48, 70, 0.12);
}

.activities-highlight-track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

.activities-highlight-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.activities-highlight-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 5.8;
  color: #fff;
  overflow: hidden;
}

.activities-highlight-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 20, 32, 0.04), rgba(12, 20, 32, 0.74));
}

.activities-highlight-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activities-highlight-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 28px;
  z-index: 1;
}

.activities-highlight-copy h3 {
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  margin-bottom: 8px;
}

.activities-highlight-copy span,
.activities-highlight-tag {
  font-family: var(--font-subtitle);
}

.activities-highlight-tag {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.activities-highlight-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.activities-highlight-dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 999px;
  background: #c7d0dc;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.activities-highlight-dot.is-active {
  width: 26px;
  background: var(--brand);
}

.activities-highlight-empty,
.post-meta {
  border-radius: 22px;
  border: 1px dashed rgba(200, 212, 228, 0.92);
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
}

.activities-meta-status {
  min-height: 20px;
  margin: 12px 0 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.activities-feed-host {
  display: grid;
  gap: 16px;
}

.activities-post-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  border-radius: 28px;
  border: 1px solid rgba(204, 216, 232, 0.88);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(34, 48, 70, 0.1);
  overflow: hidden;
}

.activities-post-media {
  background: linear-gradient(135deg, #dce7f5, #f2e5cf);
  min-height: 100%;
  aspect-ratio: 4 / 3;
}

.activities-post-media a {
  display: block;
  height: 100%;
}

.activities-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activities-feed-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 240px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-deep);
  font-family: var(--font-title);
}

.activities-post-body {
  padding: 22px 24px 22px 6px;
  display: grid;
  gap: 14px;
}

.activities-post-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.activities-post-header h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin-top: 4px;
}

.activities-post-header time {
  color: var(--ink-soft);
  font-size: 0.85rem;
  white-space: nowrap;
  font-family: var(--font-subtitle);
}

.activities-post-source {
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-subtitle);
}

.activities-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activities-post-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(212, 160, 43, 0.12);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-subtitle);
}

.activities-post-caption {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.activities-post-link {
  width: fit-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .activities-see-all {
    align-self: flex-start;
  }

  .activities-tabs {
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
    padding: 0 max(4vw, 14px) 6px;
  }

  .activities-post-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .activities-post-body {
    padding: 0 20px 22px;
  }

  .activities-post-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .activities-highlight-link {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .activities-copy {
    max-width: 100%;
  }

  .activities-see-all {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
  }

  .activities-tab {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .activities-highlight-slider {
    grid-template-columns: 1fr;
  }

  .activities-highlight-nav {
    display: none;
  }

  .activities-highlight-window {
    border-radius: 18px;
  }

  .activities-highlight-link {
    aspect-ratio: 1 / 1;
  }

  .activities-highlight-copy {
    padding: 18px 16px;
  }

  .activities-highlight-copy h3 {
    font-size: 1.2rem;
    line-height: 1.18;
  }

  .activities-post-header {
    flex-direction: column;
    gap: 8px;
  }

  .activities-post-card {
    border-radius: 16px;
  }

  .activities-post-media {
    aspect-ratio: 1 / 1;
  }

  .activities-post-body {
    padding: 0 16px 18px;
    gap: 12px;
  }

  .activities-post-header h3 {
    font-size: 1.12rem;
    line-height: 1.22;
  }

  .activities-post-header time {
    white-space: normal;
  }

  .activities-post-tag {
    border-radius: 8px;
  }

  .activities-post-link {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 160, 43, 0.32);
    border-radius: 8px;
    text-decoration: none;
  }
}
