:root {
  --page-bg: #ffffff;
  --page-text: #0f172a;
  --page-muted: #475569;
  --page-accent: #2563eb;
  --page-border: rgba(15, 23, 42, 0.08);
  --page-card-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.page {
  background: var(--page-bg);
  color: var(--page-text);
  padding-top: 5rem;
}

.page section {
  max-width: min(1280px, 92vw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
}

.page-hero {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.page-hero aside {
  display: flex;
  justify-content: center;
}

.page-hero-image {
  width: min(520px, 100%);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 36px 60px rgba(15, 23, 42, 0.18);
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: rgba(37, 99, 235, 0.8);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.page-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--page-accent);
  border-radius: 999px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--page-muted);
  max-width: 560px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.12);
  color: var(--page-accent);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-button:hover,
.page-button:focus-visible {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.page-button--primary {
  background: var(--page-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
}

.page-button--primary:hover,
.page-button--primary:focus-visible {
  background: #1d4ed8;
}

.page-section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 620px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-section-heading span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  color: rgba(37, 99, 235, 0.8);
  font-weight: 600;
}

.page-section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
}

.page-section-heading p {
  color: var(--page-muted);
  line-height: 1.7;
}

.page-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.page-card,
.team-card,
.contact-panel {
  background: var(--page-surface, #fff);
  border: 1px solid var(--page-border);
  border-radius: 20px;
  box-shadow: var(--page-card-shadow);
  padding: clamp(1.6rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-card:hover,
.page-card:focus-within,
.team-card:hover,
.team-card:focus-within,
.contact-panel:hover,
.contact-panel:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 32px 60px rgba(37, 99, 235, 0.12);
}

.page-card img,
.team-card img {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  object-fit: cover;
}

.team-card img {
  height: 240px;
}

.page-card h3,
.team-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.page-card p,
.team-card p,
.contact-panel p {
  color: var(--page-muted);
  line-height: 1.6;
}

.page-pill-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.page-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--page-accent);
  font-weight: 600;
}

.page-feature {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.page-feature img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 32px 58px rgba(15, 23, 42, 0.14);
}

.page-feature-copy {
  display: grid;
  gap: 1.25rem;
}

.page-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.02));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  box-shadow: 0 30px 56px rgba(37, 99, 235, 0.12);
}

.page-cta h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.page-cta p {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: var(--page-muted);
  line-height: 1.65;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
}

.contact-detail i {
  font-size: 1.4rem;
  color: var(--page-accent);
  margin-top: 0.2rem;
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--page-muted);
}

.team-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.team-social a {
  color: var(--page-accent);
  font-size: 1.1rem;
}

.auth {
  padding-top: 5rem;
}

.auth section {
  max-width: min(1100px, 92vw);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  margin: 0 auto;
}

.auth-wrapper {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.auth-panel h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin: 0;
}

.auth-panel p {
  color: var(--page-muted);
  line-height: 1.7;
}

.auth-panel ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
  color: var(--page-muted);
}

.auth-panel li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-panel li i {
  color: var(--page-accent);
}

.auth-card {
  background: #fff;
  border: 1px solid var(--page-border);
  border-radius: 24px;
  box-shadow: var(--page-card-shadow);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

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

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form .form-group,
.auth-form .mb-3 {
  margin-bottom: 0 !important;
}

.auth-form label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--page-text);
}

.auth-form .form-control,
.auth-form input,
.auth-form select,
.auth-form textarea {
  border-radius: 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  color: var(--page-text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .form-control:focus,
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 0.9rem 1.4rem;
}

.auth-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--page-muted);
}

.auth-extra a {
  color: var(--page-accent);
  font-weight: 600;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
  color: var(--page-muted);
  font-size: 0.9rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.1);
}

.socialaccount_providers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.socialaccount_providers a,
.auth-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: rgba(37, 99, 235, 0.08);
  color: var(--page-accent);
  font-weight: 600;
  text-decoration: none;
}

.socialaccount_providers a:hover,
.socialaccount_providers a:focus-visible,
.auth-social-link:hover,
.auth-social-link:focus-visible {
  background: rgba(37, 99, 235, 0.16);
}

.map-frame {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 56px rgba(15, 23, 42, 0.12);
}

.map-frame iframe {
  width: 100%;
  height: clamp(320px, 50vw, 460px);
  border: 0;
}


@media (max-width: 768px) {
  .page {
    padding-top: 4rem;
  }

  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-button {
    justify-content: center;
  }

  .page-hero-image {
    margin-top: 1.5rem;
  }

  .auth-wrapper {
    grid-template-columns: 1fr;
  }
}
