:root {
  --etera-gold: #f5c542;
  --etera-gold-soft: #fff4c7;
  --etera-green: #2e7d64;
  --etera-green-dark: #173b31;
  --etera-green-soft: #e6f4ef;
  --etera-ink: #1e2a44;
  --etera-muted: #5b6e8c;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.16), rgba(46, 125, 100, 0.18)),
    url("../assets/pic10.jpeg") center / cover fixed;
  color: var(--etera-ink);
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

a,
button,
input,
textarea,
select {
  max-width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(246, 251, 248, 0.82), rgba(236, 247, 242, 0.86)),
    radial-gradient(circle at 15% 10%, rgba(245, 197, 66, 0.2), transparent 34%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("../assets/pic1.jpeg") center / cover;
  animation: eteraPageBackdrop 32s infinite;
  transform: scale(1.04);
}

.site-header,
.site-header.minimal,
#main-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(46, 125, 100, 0.12) !important;
  box-shadow: 0 12px 32px rgba(23, 59, 49, 0.08) !important;
}

.site-header,
.site-header.minimal {
  padding: 0.28rem 0 !important;
}

.site-header .nav-wrap,
.dashboard-nav,
#main-header .header-row {
  min-height: 56px;
}

.logo-mark,
.avatar.large,
.avatar.medium {
  width: 38px !important;
  height: 38px !important;
}

.logo,
.brand-name {
  font-size: 1.15rem !important;
}

.nav-wrap,
.dashboard-nav,
.header-row,
.container,
.footer-grid {
  max-width: min(100% - 24px, 1400px) !important;
}

.footer-grid > div {
  min-width: 0;
}

.footer-grid h4 {
  margin-bottom: 0.75rem !important;
}

.footer-grid a {
  display: flex !important;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 0.45rem;
  margin: 0.28rem 0 !important;
  padding: 0.34rem 0.55rem;
  border-radius: 6px;
  color: #e6f4ef !important;
  background: rgba(255, 255, 255, 0.06);
}

.footer-grid a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--etera-gold);
  flex: 0 0 auto;
}

.footer-grid a:hover {
  color: var(--etera-gold) !important;
  background: rgba(245, 197, 66, 0.1);
}

.nav-actions,
.header-tools,
.nav-center,
.nav {
  min-width: 0;
}

.section,
.section.alt,
.dashboard-main,
.admin-main,
main {
  background: transparent !important;
}

.hero-section,
.admin-hero {
  background:
    linear-gradient(135deg, rgba(23, 59, 49, 0.92), rgba(46, 125, 100, 0.88)),
    url("../assets/lecture_hall.jpg") center / cover !important;
}

.card,
.dashboard-card,
.admin-panel,
.admin-card,
.form-card,
.research-card,
.video-card,
.gallery-item,
.program-card {
  border-radius: 8px !important;
  border: 1px solid rgba(46, 125, 100, 0.12) !important;
  box-shadow: 0 18px 44px rgba(23, 59, 49, 0.08) !important;
}

.content-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
}

.card:hover,
.dashboard-card:hover,
.admin-panel:hover,
.admin-card:hover,
.research-card:hover,
.video-card:hover,
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(23, 59, 49, 0.12) !important;
}

.btn {
  border-radius: 4px !important;
}

.btn:not(.ghost) {
  background: var(--etera-gold) !important;
  color: var(--etera-green-dark) !important;
}

.eyebrow,
.section-head .eyebrow {
  color: #c79b18 !important;
}

.content-card-media,
.video-thumbnail,
.gallery-image,
.gallery-media-shell {
  border-radius: 0 !important;
  overflow: hidden;
}

.content-card-media {
  aspect-ratio: 16 / 9;
  background: #102a43;
}

.content-card-overlay {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58)) !important;
}

.content-card-play {
  background: rgba(245, 197, 66, 0.92);
  color: #173b31;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
}

.card-video,
.gallery-media-image,
.video-thumbnail img,
.gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card,
.video-card {
  overflow: hidden;
}

.content-card .card-video {
  aspect-ratio: 16 / 9;
  background: #102a43;
}

.content-uploader,
.uploader-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  color: var(--etera-ink);
  font-weight: 700;
}

.content-uploader-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid var(--etera-gold);
  box-shadow: 0 6px 14px rgba(23, 59, 49, 0.12);
}

.action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(46, 125, 100, 0.12);
}

.action-bar .btn.small {
  min-height: 32px;
  padding: 0.32rem 0.62rem !important;
  border-color: rgba(46, 125, 100, 0.24) !important;
  color: var(--etera-green) !important;
  background: rgba(230, 244, 239, 0.76) !important;
  font-size: 0.76rem !important;
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--etera-green);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle {
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.theme-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--etera-green-dark);
  font-size: 1rem;
  line-height: 1;
}

.theme-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--etera-green-dark);
  white-space: nowrap;
}

.icon-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0 !important;
  border-radius: 50% !important;
  align-items: center !important;
  justify-content: center !important;
}

.icon-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.icon-bin {
  position: relative;
  width: 14px;
  height: 15px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.icon-bin::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -5px;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.icon-bin::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -8px;
  width: 6px;
  height: 3px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.icon-eye {
  position: relative;
  width: 19px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-eye::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.btn.danger.icon-action,
.btn.danger.small.icon-action {
  background: #fff1f0 !important;
  border-color: rgba(224, 90, 90, 0.38) !important;
  color: #b42318 !important;
}

.action-bar .btn.active,
.action-bar .btn:hover {
  background: var(--etera-gold-soft) !important;
  color: var(--etera-green-dark) !important;
}

.share-popover,
.notification-panel {
  border: 1px solid rgba(46, 125, 100, 0.14) !important;
  border-radius: 8px !important;
  box-shadow: 0 24px 60px rgba(23, 59, 49, 0.18) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px);
}

.notification-panel {
  overflow: hidden;
  width: min(440px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  right: 12px !important;
  left: auto !important;
  color: var(--etera-ink);
}

.notification-panel-head {
  background: linear-gradient(135deg, var(--etera-green-soft), var(--etera-gold-soft));
  border-bottom: 1px solid rgba(46, 125, 100, 0.12);
  padding: 1rem 1rem 0.9rem;
}

.notification-panel-head h3 {
  margin: 0;
  color: var(--etera-green-dark);
  font-size: 1.05rem;
  line-height: 1.2;
}

.notification-panel-head .eyebrow {
  margin: 0 0 0.25rem;
  color: var(--etera-green);
}

.notification-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.65rem;
  display: grid;
  gap: 0.55rem;
  background: linear-gradient(180deg, rgba(247, 250, 248, 0.98), rgba(255, 255, 255, 0.98));
}

.notification-item {
  border: 1px solid rgba(46, 125, 100, 0.12);
  border-left: 4px solid var(--etera-gold);
  border-radius: 8px;
  padding: 0.82rem 0.9rem;
  display: grid;
  gap: 0.42rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--etera-ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(23, 59, 49, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.notification-item:hover,
.notification-item:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(46, 125, 100, 0.26);
  box-shadow: 0 12px 28px rgba(23, 59, 49, 0.12);
}

.notification-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.notification-item a {
  color: var(--etera-green);
  font-weight: 700;
}

.notification-item h4,
.notification-item strong {
  color: var(--etera-green-dark);
  font-size: 0.95rem;
  line-height: 1.28;
}

.notification-item p {
  margin: 0;
  color: var(--etera-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.notification-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  background: rgba(46, 125, 100, 0.11);
  color: var(--etera-green-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.notification-item-top .muted {
  color: var(--etera-muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.notification-empty {
  padding: 1rem;
  border: 1px dashed rgba(46, 125, 100, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--etera-muted);
  text-align: center;
  font-weight: 700;
}

.notification-count {
  background: var(--etera-gold) !important;
  color: var(--etera-green-dark) !important;
  border: 1px solid rgba(23, 59, 49, 0.18);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.comments {
  padding: 0 1rem 1rem;
}

.comment {
  display: grid;
  gap: 0.28rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(46, 125, 100, 0.1);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.comment-header-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.32rem;
  font-size: 0.76rem;
}

.comment-avatar {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--etera-gold);
}

.comment p {
  margin: 0;
  padding-left: 1.65rem;
  font-size: 0.83rem;
  line-height: 1.45;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.expandable-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expandable-copy.is-expanded p {
  display: block;
}

.more-link {
  color: var(--etera-green);
  font-weight: 700;
}

.gallery-board,
.gallery-grid {
  align-items: stretch;
}

.gallery-item {
  display: flex;
  flex-direction: column;
}

.gallery-media-shell,
.gallery-image {
  aspect-ratio: 4 / 3;
}

.gallery-caption,
.gallery-info {
  flex: 1;
  background: rgba(255, 255, 255, 0.96);
}

.lightbox-modal:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 16, 0.9);
}

.lightbox-container {
  position: relative;
  z-index: 1;
  width: min(94vw, 1060px);
}

.lightbox-panel {
  background: #07140f;
  border-radius: 8px;
  overflow: hidden;
}

.lightbox-media video,
.lightbox-media img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #07140f;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 197, 66, 0.95);
  color: #173b31;
  font-weight: 800;
  cursor: pointer;
}

.lightbox-close {
  top: -52px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.lightbox-prev {
  left: -52px;
  top: 50%;
}

.lightbox-next {
  right: -52px;
  top: 50%;
}

.lightbox-counter {
  color: white;
  text-align: center;
  margin-top: 0.75rem;
}

[data-contribute-forms],
[data-forms-container] {
  transition: opacity 180ms ease, transform 180ms ease;
}

[data-toggle-contribute],
[data-toggle-forms] {
  min-height: 44px;
  padding: 0.65rem 1.2rem !important;
  font-size: 0.9rem !important;
  box-shadow: 0 14px 30px rgba(245, 197, 66, 0.18);
}

.engagement-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10020;
  width: min(390px, calc(100vw - 28px));
  padding: 1.15rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(230, 244, 239, 0.98)),
    url("../assets/pic8.jpeg") center / cover;
  border: 1px solid rgba(46, 125, 100, 0.16);
  box-shadow: 0 26px 70px rgba(23, 59, 49, 0.22);
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.engagement-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.engagement-popup h3 {
  margin: 0.2rem 0 0.45rem;
  color: var(--etera-green-dark);
}

.engagement-popup p {
  color: var(--etera-muted);
  margin: 0 0 0.85rem;
}

.engagement-popup-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 59, 49, 0.08);
  color: var(--etera-green-dark);
  cursor: pointer;
}

.engagement-popup-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.donation-mini-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.donation-method {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem;
  border: 1px solid rgba(46, 125, 100, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.donation-method img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.donation-method span {
  display: grid;
  min-width: 0;
}

.donation-method strong {
  color: var(--etera-green-dark);
  font-size: 0.86rem;
}

.donation-method small {
  color: var(--etera-muted);
  font-weight: 700;
  word-break: break-word;
}

.file-dropzone {
  display: grid !important;
  gap: 0.55rem;
  padding: 0.9rem !important;
  border: 1.5px dashed rgba(46, 125, 100, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(230, 244, 239, 0.78), rgba(255, 244, 199, 0.52));
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.file-dropzone.is-dragging {
  border-color: var(--etera-gold);
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.26), rgba(230, 244, 239, 0.94));
  transform: translateY(-1px);
}

.file-dropzone input[type="file"] {
  margin-top: 0.35rem;
}

.file-drop-label {
  display: block;
  color: var(--etera-green);
  font-weight: 700;
  font-size: 0.82rem;
}

.upload-progress {
  display: none;
  gap: 0.5rem;
  margin: 0.85rem 0;
  padding: 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(46, 125, 100, 0.14);
}

.upload-progress.show {
  display: grid;
}

.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--etera-green-dark);
}

.upload-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(46, 125, 100, 0.12);
}

.upload-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--etera-green), var(--etera-gold));
  transition: width 160ms ease;
}

[hidden] {
  display: none !important;
}

.site-footer {
  background:
    linear-gradient(135deg, rgba(23, 59, 49, 0.98), rgba(30, 42, 68, 0.96)),
    url("../assets/chagas_poster.jpg") center / cover !important;
}

@media (prefers-reduced-motion: no-preference) {
  .card,
  .dashboard-card,
  .admin-panel,
  .admin-card,
  .research-card,
  .video-card,
  .gallery-item,
  .btn {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  }
}

@keyframes eteraPageBackdrop {
  0%, 18% {
    background-image: url("../assets/pic1.jpeg");
    transform: scale(1.04);
  }
  22%, 40% {
    background-image: url("../assets/pic8.jpeg");
    transform: scale(1.08);
  }
  44%, 62% {
    background-image: url("../assets/pic10.jpeg");
    transform: scale(1.05);
  }
  66%, 84% {
    background-image: url("../assets/pic12.jpeg");
    transform: scale(1.08);
  }
  88%, 100% {
    background-image: url("../assets/pic6.jpeg");
    transform: scale(1.04);
  }
}

@media (max-width: 768px) {
  body {
    width: 100%;
  }

  .container,
  .nav-wrap,
  .dashboard-nav,
  .footer-grid {
    width: min(100% - 24px, 100%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .site-header .nav-actions,
  .header-tools,
  .nav-right,
  .nav-center {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .site-header .nav-actions > *,
  .header-tools > *,
  .nav-center > *,
  .nav-right > * {
    flex: 0 0 auto;
  }

  .header-search {
    width: 100%;
  }

  .header-search input {
    width: 100% !important;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
  }

  .gallery-board,
  .gallery-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .gallery-item {
    flex: 0 0 min(84%, 340px);
    scroll-snap-align: center;
  }

  .content-card,
  .dashboard-card,
  .admin-panel,
  .admin-card,
  .form-card,
  .program-card,
  .mission-card {
    max-width: 100%;
  }

  .action-bar {
    gap: 0.35rem;
  }

  .action-bar .btn.small {
    padding: 0.3rem 0.5rem !important;
  }

  #videos .content-card,
  #videos .video-card {
    width: 100%;
    min-width: 0;
  }

  #videos .content-card-media {
    width: 100%;
  }

  #videos .content-card-body,
  #videos .action-bar {
    max-width: 100%;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .notification-panel {
    position: fixed !important;
    top: 72px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: calc(100vh - 96px);
  }

  .notification-list {
    max-height: calc(100vh - 180px);
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
    background: rgba(245, 197, 66, 0.98);
  }

  .lightbox-container {
    width: calc(100vw - 24px);
  }
}

#videos .video-card .video-description,
#videos .video-card .expandable-copy,
#videos .video-card .expandable-copy p,
#videos .video-card .more-link {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

#videos .video-card .more-link {
  background: rgba(245, 197, 66, 0.94);
  color: #173b31 !important;
  border: 0;
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  width: max-content;
  text-shadow: none;
}

#videos .video-card .content-card-body {
  background: linear-gradient(180deg, rgba(7, 20, 15, 0), rgba(7, 20, 15, 0.88) 36%, rgba(7, 20, 15, 0.96)) !important;
}

.lightbox-panel.video-focus::before {
  content: "x";
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: none;
}

body.about-page {
  background:
    linear-gradient(120deg, rgba(247, 249, 244, 0.96), rgba(232, 244, 238, 0.94)),
    url("../assets/pic6.jpeg") center / cover fixed;
}

.about-page .about-hero {
  min-height: 54vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(18, 54, 43, 0.92), rgba(18, 54, 43, 0.68)),
    url("../assets/pic6.jpeg") center / cover !important;
}

.about-page .focus-card,
.about-page .goal-card,
.about-page .founder-card,
.about-page .film-card {
  border-color: rgba(46, 125, 100, 0.12);
}

.about-page .focus-card,
.about-page .film-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 244, 0.9)),
    url("../assets/pic8.jpeg") center / cover;
  background-blend-mode: normal, soft-light;
}

.about-page .section.alt {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 252, 248, 0.92)),
    url("../assets/lecture_hall.jpg") center / cover fixed;
}

.about-page .founders-section .founder-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 247, 0.96)),
    url("../assets/malaria_poster.jpg") center / cover;
  background-blend-mode: normal, soft-light;
}

.scroll-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 12000;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 197, 66, 0.44);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.98), rgba(46, 125, 100, 0.98));
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(18, 54, 43, 0.26);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, box-shadow 0.22s ease;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
  outline: none;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 44px rgba(18, 54, 43, 0.32);
}

.scroll-to-top svg {
  display: block;
  pointer-events: none;
}

body[data-theme="dark"] .scroll-to-top {
  background: linear-gradient(135deg, #f5c542, #1e5a48);
  color: #07140f;
  border-color: rgba(255, 255, 255, 0.24);
}

@media (max-width: 640px) {
  .scroll-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }
}
