:root {
  --bg: #f5f7fa;
  --ink: #0b1c2d;
  --muted: #526171;
  --brand: #0b5f9a;
  --brand-strong: #0a3d60;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --shadow: 0 18px 40px rgba(12, 24, 38, 0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body.home {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(620px 320px at 12% 8%, rgba(11, 95, 154, 0.12), transparent 62%),
    radial-gradient(520px 320px at 80% 12%, rgba(10, 61, 96, 0.12), transparent 65%),
    linear-gradient(180deg, #f9fbff 0%, #f1f4f8 50%, #f5f7fa 100%);
  z-index: -1;
}

.admin-bg {
  background:
    radial-gradient(620px 320px at 12% 8%, rgba(104, 36, 52, 0.16), transparent 62%),
    radial-gradient(520px 320px at 80% 12%, rgba(38, 26, 32, 0.18), transparent 65%),
    linear-gradient(180deg, #fbf7f8 0%, #f3eef0 50%, #f6f2f4 100%);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 250, 0.9);
  border-bottom: 1px solid rgba(11, 28, 45, 0.08);
  z-index: 10;
}

.site-header.admin-header {
  background: rgba(248, 243, 245, 0.9);
  border-bottom: 1px solid rgba(72, 34, 42, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand img {
  width: 104px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand) 0%, #1185cf 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11, 95, 154, 0.22);
}

.button.primary.admin {
  background: linear-gradient(135deg, #6b2538 0%, #2f1a22 100%);
  box-shadow: 0 12px 24px rgba(59, 24, 33, 0.22);
}

.button.ghost {
  border-color: rgba(11, 28, 45, 0.18);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
}

.button.dark {
  background: var(--brand-strong);
  color: #fff;
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 22px 0 30px;
  align-items: start;
}

.hero-title {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.hero-content {
  margin-top: 0;
}

.hero-panel {
  grid-column: 1 / -1;
}

.hero-content {
  animation: fadeUp 0.7s ease both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--brand-strong);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 6px 0 0;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-content .lead {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 32px;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.meta-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 28, 45, 0.08);
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.meta-card strong {
  font-size: 18px;
}

.hero-panel {
  display: grid;
  gap: 18px;
  animation: fadeUp 0.9s ease both;
  border-top: 1px solid rgba(11, 28, 45, 0.12);
  padding-top: 24px;
}

.panel-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.panel-card h2,
.panel-card h3 {
  margin-top: 0;
  font-weight: 600;
}

.panel-card ul {
  padding-left: 18px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.panel-card .lead {
  margin: 0 0 18px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.activity-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(11, 28, 45, 0.08);
  background: #f8fafc;
  text-align: center;
}

.activity-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-style: italic;
  text-align: justify;
}

.logo-placeholder {
  width: 74px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(11, 95, 154, 0.15), rgba(11, 95, 154, 0.04));
  border: 1px dashed rgba(11, 95, 154, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 0 auto;
}

.activity-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
 height: 100px;
}

.activity-logo img {
  width: 180px;
  height: auto;
  max-width: 100%;
  display: block;
}

.panel-card.accent {
  background: var(--surface-soft);
  border: 1px solid rgba(11, 95, 154, 0.18);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 30px 0 60px;
}

.auth-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  padding: 64px 0 80px;
  align-items: start;
}

.auth-intro .lead {
  max-width: 520px;
}

.auth-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.auth-card .panel-card {
  max-width: 440px;
  margin-left: auto;
}

.auth-card form {
  display: grid;
  gap: 12px;
}

.auth-card label {
  font-weight: 600;
  margin-top: 6px;
}

.auth-card input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(11, 28, 45, 0.2);
}

.auth-card .remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.auth-card .remember input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.auth-card .button.primary {
  width: 100%;
  justify-content: center;
}

.auth-footer {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.auth-footer a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 600;
}

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.flash.error {
  background: #fee2e2;
  color: #7f1d1d;
}

.flash.success {
  background: #e6ffed;
  color: #065f46;
}


.feature {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(11, 28, 45, 0.08);
}

.feature h4 {
  margin: 0 0 10px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid rgba(11, 28, 45, 0.08);
  padding: 40px 0 24px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  padding-bottom: 24px;
}

.site-footer a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 600;
}

.footer-brand img {
  width: 130px;
  height: auto;
  margin-bottom: 10px;
}

.footer-address {
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  justify-items: center;
}

.footer-brand {
  text-align: center;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.footer-contact li {
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 14px;
}

.legal-content {
  padding: 40px 0 70px;
}

.legal-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.legal-hero h1 {
  margin: 8px 0 12px;
}

.legal-summary {
  display: grid;
  gap: 6px;
}

.legal-summary h2 {
  margin: 0;
  font-size: 20px;
}

.legal-summary p {
  margin: 0;
  color: var(--muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.legal-card {
  padding: 18px 0;
  border-bottom: 1px solid rgba(11, 28, 45, 0.08);
}

.legal-card:last-child {
  border-bottom: none;
}

.legal-card ul {
  padding-left: 28px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-content {
  padding: 40px 0 70px;
}

.contact-card {
  max-width: 680px;
  margin: 0 auto;
}

.contact-phone {
  margin: 6px 0 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(11, 28, 45, 0.2);
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .header-inner {
    flex-direction: row;
    gap: 10px;
  }

  .nav {
    width: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .brand img {
    width: 96px;
  }

  .brand span {
    display: none;
  }

  .auth-card .panel-card {
    margin-left: 0;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-panel {
    animation: none;
  }

  .button {
    transition: none;
  }
}
