:root {
  --blue-dark: #12358c;
  --blue: #1a56db;
  --blue-soft: #dceafb;
  --blue-pale: #f5f8ff;
  --accent: #f4b942;
  --accent-deep: #dda12e;
  --text: #22303f;
  --muted: #53657d;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 14px 28px rgba(18, 53, 140, 0.12);
}

* { box-sizing: border-box; }

html {
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

main.container {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--blue); }

a:hover { opacity: 0.9; }

h1, h2, h3 {
  color: var(--blue-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.25rem); margin-top: 1.6rem; }
h2 { font-size: 1.55rem; }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 2px 12px rgba(18, 53, 140, 0.06);
}

.site-nav-wrap {
  padding-top: 2px;
  padding-bottom: 2px;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 1rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  white-space: normal;
}

.site-logo {
  width: 63px;
  height: 63px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  flex-shrink: 0;
}

.site-title-text {
  display: inline-flex;
  align-items: center;
  color: var(--blue-dark);
  white-space: nowrap;
  transition: opacity 0.2s ease, max-width 0.25s ease, transform 0.25s ease;
}

.full-title {
  display: inline-flex;
  max-width: 28rem;
  overflow: hidden;
}

.short-title {
  display: none;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.944rem;
  padding-top: 2px;
}

.site-nav .nav-link {
  padding: 0;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
  border-bottom: 3px solid transparent;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  border-bottom-color: var(--accent);
  color: var(--blue-dark);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  color: var(--blue-dark);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(18, 53, 140, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 905px) {
  .site-title {
    font-size: 1.02rem;
    margin-right: auto;
  }

  .full-title {
    display: none;
    opacity: 0;
    max-width: 0;
    margin-right: 0;
  }

  .short-title {
    display: inline-flex;
    opacity: 1;
    max-width: 4rem;
  }

  .site-nav {
    gap: 10px 0;
    padding-top: 6px;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #2d5be0 100%);
  padding: 0;
  margin-bottom: 18px;
  text-align: center;
  color: var(--white);
}

.hero .container {
  max-width: none;
  padding: 0;
}

.hero h1 {
  margin: 0 0 12px;
  color: var(--white);
  text-transform: none;
}

.hero p {
  margin: 0 auto;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero strong {
  color: var(--white);
}

.hero img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 53, 140, 0.08);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}

.card h2, .card h3 { margin-top: 0; }

.card h2 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}

.member-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.member-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  text-align: center;
}

.member-name-left {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--blue-dark);
}

.member-copy {
  flex: 1;
  align-self: center;
}

.member-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(18, 53, 140, 0.12);
  background: var(--blue-soft);
  flex-shrink: 0;
}

.role {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(244, 185, 66, 0.18);
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .member-card {
    flex-direction: column;
  }

  .member-profile {
    width: 100%;
    align-items: center;
  }

  .role {
    margin-top: 8px;
    text-align: center;
  }
}

.support-list {
  margin: 0;
  padding-left: 1.25rem;
}

.support-list li + li {
  margin-top: 0.6rem;
}

.donation-box {
  display: inline-block;
  background: var(--blue-pale);
  border: 1px solid rgba(18, 53, 140, 0.12);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 8px;
  color: var(--blue-dark);
  line-height: 1.7;
}

.button {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #1d1f24;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 18px rgba(221, 161, 46, 0.22);
}

.button:hover {
  background: linear-gradient(180deg, #f7c55c 0%, #dca127 100%);
  color: #1d1f24;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.social-link:hover {
  text-decoration: underline;
}

.social-link img {
  display: block;
  width: 24px;
  height: 24px;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 10px 0 14px;
  background: linear-gradient(180deg, #0d2a67 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  border-top: 4px solid var(--accent);
}

.site-footer a { color: #dfe9ff; }
.site-footer .small { font-size: 0.85rem; color: #bfd3ff; }

.footer-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.footer-membership {
  display: inline-flex;
  align-items: center;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 4px;
  border-radius: 4px;
  background: var(--white);
}

.footer-membership a {
  display: flex;
  align-items: center;
}

.footer-membership img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 45vw;
}

.footer-meta {
  width: 100%;
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

.footer-meta a {
  color: #dfe9ff;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .footer-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 20px;
  }

  .footer-membership {
    position: static;
    transform: none;
  }
}

@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 8px 12px; }
  .card { padding: 18px 18px; }
  .member-card { flex-direction: column; }
  .member-photo { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; }
  .footer-row { grid-template-columns: 1fr; row-gap: 8px; }
  .footer-membership { justify-self: center; }
}
