html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  /* subtle light blue-red diagonal gradient for the site background */
  background-color: #f8fafc; /* fallback */
  background-image: linear-gradient(135deg, rgba(37,140,251,0.06) 0%, rgba(251,37,140,0.06) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ════════════════════════════════════════════════════════════
   Shared Page Styles  —  used across all main pages
   ════════════════════════════════════════════════════════════ */

/* ── Page hero header ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0b1220 0%, #1a2540 60%, #0f172a 100%);
  border-radius: 16px;
  padding: 2.6rem 2.5rem 2.2rem;
  margin-bottom: 1.8rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(239,68,68,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 0.22rem 0.8rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.9rem;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
  background: linear-gradient(90deg, #ffffff 0%, #c7d2fe 55%, #fca5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  margin: 0 0 0.7rem;
  font-family: 'Playfair Display', Georgia, serif;
}
.page-hero .subtitle {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 580px;
  margin: 0;
  line-height: 1.65;
}
.page-hero .meta {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: #475569;
  font-weight: 500;
}

/* ── White content panel ───────────────────────────────────── */
.content-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
}
.content-panel h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 1.6rem 0 0.5rem;
  padding-top: 0.4rem;
  font-family: 'Playfair Display', Georgia, serif;
  border-top: 1px solid #f1f5f9;
}
.content-panel h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.content-panel h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.2rem 0 0.35rem;
}
.content-panel p {
  color: #334155;
  line-height: 1.72;
  font-size: 0.94rem;
  margin-bottom: 0.75rem;
}
.content-panel ul, .content-panel ol {
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.7;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}
.content-panel ul li, .content-panel ol li {
  margin-bottom: 0.3rem;
}
.content-panel a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}
.content-panel a:hover {
  text-decoration: underline;
}
.content-panel .last-updated {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 1.2rem;
  display: block;
}

/* ── Two-column layout helper ──────────────────────────────── */
.page-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .page-hero { padding: 1.8rem 1.3rem 1.6rem; }
  .content-panel { padding: 1.4rem 1.2rem; }
  .page-two-col { grid-template-columns: 1fr; }
}

/* ── Contact-specific ──────────────────────────────────────── */
.contact-detail-block p {
  margin-bottom: 0.4rem;
}
.contact-detail-block strong {
  color: #0f172a;
}
.contact-form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  display: block;
}
.contact-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.contact-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.btn-page-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
  text-decoration: none;
}
.btn-page-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-page-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #4f46e5;
  border: 2px solid #c7d2fe;
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn-page-outline:hover {
  background: #eef2ff;
  border-color: #4f46e5;
  color: #4f46e5;
  text-decoration: none;
}