/* ================================================================
   site.css — Family Website custom styles
   Bootstrap 5 overrides and additions
   ================================================================ */

/* ── Typography ─────────────────────────────────────────────────── */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: #f8f9fa;
  color: #212529;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, #1a3a5c 0%, #2c6fad 100%) !important;
}
.navbar-brand svg {
  vertical-align: middle;
}

/* ── Page content ───────────────────────────────────────────────── */
.page-content {
  line-height: 1.75;
}
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.page-content h2, .page-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15) !important;
}
.card-img-top {
  border-radius: calc(0.375rem - 1px) calc(0.375rem - 1px) 0 0;
}

/* ── Blog post ──────────────────────────────────────────────────── */
.blog-post {
  max-width: 860px;
}

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  font-size: 0.85rem;
}

/* ── Admin area ─────────────────────────────────────────────────── */
.admin-sidebar .nav-link {
  color: #fff;
  padding: .5rem 1rem;
  border-radius: .25rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background-color: rgba(255,255,255,.15);
}

/* ── Utilities ──────────────────────────────────────────────────── */
.object-fit-cover { object-fit: cover; }

/* ── Responsive image override (Bootstrap already handles this,
      but this catches legacy inline width= attrs) ─────────────── */
@media (max-width: 767px) {
  .page-content img[width] {
    width: 100% !important;
    height: auto !important;
  }
}
