/* =========================
   GLOBAL RESET & BASE
   ========================= */

* {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}


body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2933;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Links */
a {
  color: #003366;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   UTILITY BAR
   ========================= */

.utility-bar {
  background: #f4f6f8;
  border-bottom: 1px solid #e2e6ea;
  font-size: 14px;
}

.utility-bar a {
  color: #003366;
  font-weight: 600;
}

/* =========================
   HEADER / NAVIGATION
   ========================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dfe3e8;
}

.site-header .container {
  padding: 20px 0;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #003366;
}

.main-nav a {
  margin-left: 22px;
  font-weight: 600;
  color: #003366;
}

.main-nav a:hover {
  color: #c62828;
}

.btn-donate {
  background-color: #c62828;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
}

.btn-donate:hover {
  background-color: #a81f1f;
  text-decoration: none;
}

/* =========================
   HERO
   ========================= */
.hero-split {
  padding: 34px 0;
  background: #f7f9fb;
}

.hero-text {
  padding-right: 40px;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 700;
  color: #003366;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  color: #1f2933;
  margin-bottom: 30px;
}

.hero-actions .btn {
  margin-right: 12px;
  font-weight: 700;
}

/* RIGHT SIDE: Carousel */
.hero-media {
  display: flex;
  align-items: center;
}


/* Card wrapper */
.insta-slide {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5; /* Instagram portrait – feels bigger */
  border-radius: 18px;
  overflow: hidden;
  background: #f6f6f6;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}


/* Image itself */
.insta-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* Instagram crop behavior */
  object-position: center;
}

/* Smooth fade */
.carousel-fade .carousel-item {
  transition: opacity 0.8s ease-in-out;
}

.hero-media .carousel {
  width: 100%;
  height: 400px; /* hero-scale height */
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.hero-media .carousel-inner,
.hero-media .carousel-item {
  height: 100%;
}

.hero-media .carousel-item {
  background-size: cover;
  background-position: center;
}

/* Fade from image → light background */
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(247, 249, 251, 0) 40%,
    rgba(247, 249, 251, 0.85) 85%,
    rgba(247, 249, 251, 1) 100%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-actions .btn {
  margin-right: 12px;
  padding: 10px 22px;
  font-weight: 700;
}

/* =========================
   SECTIONS
   ========================= */

.section {
  padding: 48px 0;
}

.section-light {
  background-color: #f7f9fb;
}

.section h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #003366;
}

.section .lead {
  font-size: 18px;
  margin-bottom: 16px;
}

/* =========================
   FOCUS CARDS
   ========================= */

.focus-card {
  background: #ffffff;
  border: 1px solid #e1e6eb;
  border-radius: 6px;
  padding: 28px;
  height: 100%;
}

.focus-card h5 {
  font-size: 18px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
}

.focus-card p {
  font-size: 15px;
}

/* =========================
   TESTIMONIALS
   ========================= */

.testimonial {
  background: #ffffff;
  border-left: 4px solid #c62828;
  padding: 24px;
  border-radius: 4px;
  font-size: 15px;
}

.testimonial strong {
  display: block;
  margin-top: 10px;
  color: #003366;
}

/* =========================
   CTA
   ========================= */

.cta-institutional {
  background-color: #003366;
  color: #ffffff;
  padding: 50px 20px;
}

.cta-institutional h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-institutional p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-institutional .btn {
  font-weight: 700;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  background: #f4f6f8;
  border-top: 1px solid #e2e6ea;
  padding: 30px 0;
  font-size: 14px;
}

.site-footer strong {
  color: #003366;
}

/* =========================
   CONTENT / SIDEBAR (FUTURE PAGES)
   ========================= */

.breadcrumbs {
  background: #f5f5f5;
  font-size: 14px;
  padding: 12px 40px;
}

.content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 50px 40px;
}

.sidebar {
  border-right: 1px solid #e2e6ea;
  padding-right: 20px;
}

.sidebar h3 {
  font-size: 18px;
  font-weight: 700;
  color: #003366;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  font-weight: 600;
}

/* Images floated in content */
.main-content img.right {
  float: right;
  margin: 0 0 15px 25px;
  max-width: 240px;
  border-radius: 4px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 34px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    padding-right: 0;
  }
}

/* =========================
   ABOUT PAGE
   ========================= */

.main-content header {
  margin-bottom: 30px;
}

.main-content h1 {
  font-size: 36px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
}

.main-content .lead {
  font-size: 19px;
  color: #4a5568;
  max-width: 700px;
  margin-bottom: 30px;
}

.main-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: #003366;
}

.main-content p {
  max-width: 750px;
}

.main-content em {
  color: #2d3748;
  font-style: italic;
}

.main-content img.right {
  margin-top: 10px;
}

/* Sidebar active state */
.sidebar a[aria-current="page"] {
  color: #c62828;
  font-weight: 700;
}

/* Sidebar visual polish */
.sidebar ul li a {
  display: block;
  padding: 6px 0;
}

/* Section spacing */
.main-content section {
  margin-bottom: 40px;
}

/* =========================
   EVENTS PAGE
   ========================= */

.events-list {
  margin-top: 30px;
}

.event-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  background: #ffffff;
  margin-bottom: 24px;
}

.event-date {
  text-align: center;
  min-width: 70px;
  border-right: 1px solid #e2e6ea;
  padding-right: 20px;
}

.event-month {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #c62828;
  letter-spacing: 1px;
}

.event-day {
  font-size: 32px;
  font-weight: 700;
  color: #003366;
  line-height: 1;
}

.event-details h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #003366;
}

.event-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.event-details p {
  max-width: 700px;
}

.event-link {
  font-weight: 700;
  color: #003366;
}

.event-link:hover {
  color: #c62828;
}

/* Events note */
.events-note {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e2e6ea;
}

.events-note strong {
  color: #003366;
}

/* Sidebar active state (shared) */
.sidebar a[aria-current="page"] {
  color: #c62828;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
  }

  .event-date {
    border-right: none;
    border-bottom: 1px solid #e2e6ea;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
}

/* =========================
   PARTNERS PAGE
   ========================= */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.partner-card {
  background: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  padding: 30px 24px;
  text-align: center;
}

.partner-card img {
  max-width: 140px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 18px;
}

.partner-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 8px;
}

.partner-card p {
  font-size: 15px;
}

/* Partner callout */
.partners-callout {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e2e6ea;
}

.partners-callout h2 {
  font-size: 24px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 12px;
}

.partners-callout a {
  font-weight: 700;
  color: #003366;
}

.partners-callout a:hover {
  color: #c62828;
}

/* Sidebar active state (shared) */
.sidebar a[aria-current="page"] {
  color: #c62828;
  font-weight: 700;
}

/* =========================
   TESTIMONIALS / COMMUNITY
   ========================= */

.testimonials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e6ea;
  border-left: 4px solid #c62828;
  border-radius: 6px;
  padding: 28px;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  color: #1f2933;
}

.testimonial-card figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: #4a5568;
}

.testimonial-card strong {
  color: #003366;
}

/* Community callout */
.testimonials-callout {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e2e6ea;
}

.testimonials-callout h2 {
  font-size: 24px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 12px;
}

.testimonials-callout a {
  font-weight: 700;
  color: #003366;
}

.testimonials-callout a:hover {
  color: #c62828;
}

/* Sidebar active state (shared) */
.sidebar a[aria-current="page"] {
  color: #c62828;
  font-weight: 700;
}

.mission-events-compact {
  padding-left: 10px;
}

.mission-events-compact h3 {
  font-size: 16px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 14px;
}

/* Single compact row */
.event-mini-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e6ea;
}

.event-mini-row:last-of-type {
  border-bottom: none;
}

/* Reuse event date styling, smaller */
.event-mini-row .event-date {
  min-width: 44px;
  text-align: center;
}

.event-mini-row .event-month {
  font-size: 11px;
  font-weight: 700;
  color: #c62828;
  letter-spacing: 0.5px;
}

.event-mini-row .event-day {
  font-size: 18px;
  font-weight: 700;
  color: #003366;
  line-height: 1;
}

/* Event text */
.event-mini-row .event-details strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #003366;
}

.event-mini-row .event-details span {
  font-size: 13px;
  color: #6b7280;
}

/* Link */
.mission-events-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #003366;
}

.mission-events-link:hover {
  color: #c62828;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo img {
  height: 48px; /* smaller than header */
  width: auto;
}

.footer-meta {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* Brand spans full width */
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand .footer-mission {
    margin-left: auto;
    margin-right: auto;
  }

  /* Keep Explore & Connect side by side */
  .footer-links,
  .footer-contact {
    text-align: left;
  }

  /* Footer bottom stacks */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

    .footer-grid {
    grid-template-columns: 1fr 1fr;
    justify-content: center;     /* centers the pair */
    text-align: center;
  }

  /* Brand spans full width (already correct) */
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 24px;
  }

  /* Center the content inside each column */
  .footer-links,
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links ul,
  .footer-contact ul {
    padding: 0;
  }
}


.section-divider-soft {
  height: 32px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f7f9fb 100%
  );
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 40px;
}

@media (max-width: 768px) {
  .hero-split {
    padding: 48px 0;
  }

  .section {
    padding: 48px 0;
  }

  .section-intro {
    margin-bottom: 32px;
  }
}


/* =========================
   HEADER – MODERN NAV
   ========================= */

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.header-logo img {
  height: 64px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: flex-end;
}

.nav-contact {
  font-weight: 600;
  color: #003366;
}

.header-social {
  display: flex;
  gap: 14px;
}

.header-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #003366;
  background: #f4f6f8;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-social a:hover {
  background: #e6ebf0;
  color: #c62828;
}

.header-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile */
@media (max-width: 1200px) {
  .header-social {
    display: none;
  }
}

/* =========================
   FOOTER – STRUCTURE
   ========================= */

.site-footer {
  background: #f4f6f8;
  border-top: 1px solid #e2e6ea;
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

/* Brand */
.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-mission {
  margin-top: 12px;
  color: #4a5568;
  max-width: 360px;
}

/* Columns */
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #003366;
  font-weight: 600;
}

.footer-col a:hover {
  color: #c62828;
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid #e2e6ea;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
  color: #6b7280;
}

.footer-legal a {
  color: #6b7280;
}

.footer-legal a:hover {
  color: #003366;
}

.page-intro {
  margin-bottom: 40px;
}

.page-intro h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.page-intro .lead {
  font-size: 18px;
  max-width: 680px;
}

.content-section {
  margin-bottom: 44px;
}

.content-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.content-section p {
  max-width: 720px;
}

.content-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.content-media img {
  width: 100%;
  border-radius: 6px;
}

.mission-statement {
  font-size: 18px;
  font-style: italic;
  color: #2d3748;
  margin-bottom: 16px;
}

.content-highlight {
  background: #f7f9fb;
  padding: 32px 36px;
  border-left: 4px solid #003366;
  border-radius: 4px;
}

.content-cta {
  border-top: 1px solid #e2e6ea;
  padding-top: 28px;
}

.content-cta p {
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-links {
  display: flex;
  gap: 24px;
}

.cta-links a {
  font-weight: 700;
  color: #003366;
}

.cta-links a:hover {
  color: #c62828;
}

@media (max-width: 768px) {
  .content-split {
    grid-template-columns: 1fr;
  }

  .cta-links {
    flex-direction: column;
    gap: 10px;
  }
}

.page-wrapper {
  min-height: calc(100vh - 180px);
}

.event-mini-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.event-date {
  min-width: 48px;
  text-align: center;
}

.event-month {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.event-day {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-title {
  font-size: 0.95rem;
  color: #111827;
}

.event-location {
  font-size: 0.85rem;
  color: #6b7280;
}

.event-rsvp {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  width: fit-content;
}

.event-rsvp:hover {
  text-decoration: underline;
}

/* 404 Page Layout */
.error-page {
  background: #f5f7fa; /* single solid color */
  min-height: calc(100vh - 160px); /* header + footer space */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.error-card {
  text-align: center;
  max-width: 720px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 8px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* =========================
   Contact Page
========================= */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 10px;
}

/* Center main content on simple pages */
.content-layout {
  display: flex;
  justify-content: center;
}

.content-layout .main-content {
  width: 100%;
  max-width: 760px;
}

.donate-page {
  max-width: 760px;
  margin: 0 auto;
}

.donate-section {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.donate-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.donate-qr {
  max-width: 260px;
  width: 100%;
  margin-bottom: 24px;
}

.donate-text {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 12px;
}

.zelle-logo {
  max-width: 96px;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
  .donate-card {
    padding: 36px 24px;
  }

  .donate-qr {
    max-width: 220px;
  }
}

/* =========================
   HAMBURGER NAV
   ========================= */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #003366;
  margin: 5px 0;
}

/* Desktop socials visible */
.desktop-social {
  display: flex;
}

/* Mobile socials hidden outside nav */
.mobile-social {
  display: none;
}

/* =========================
   MOBILE HEADER
   ========================= */

@media (max-width: 1200px) {
  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e6ea;
    display: none;
    flex-direction: column;
    padding: 20px;
    gap: 14px;
    z-index: 1000;
  }

  .site-header {
  position: relative;
}


  .main-nav.active {
    display: flex;
  }

  .desktop-social {
    display: none;
  }

  .mobile-social {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e6ea;
  }
}

@media (max-width: 1200px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .btn-donate {
    justify-self: end;
    white-space: nowrap;
  }
}

.image-splatter {
  width: 100%;
  max-width: 100%;
  position: relative;
}

.splatter-img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 1201px) {
  .col-lg-6 {
    width: 100%;
    max-width: 100%;
  }

  .image-splatter {
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .image-splatter img {
    border-radius: 10px;
  }
}

.collage-stack {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  width: 100%;
  flex: 1;           /* THIS is the key */
}

.collage-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* Vertical anchor */
.collage-vertical {
  height: 100%;
}

/* Right stacked images */
.collage-horizontals {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.focus-split .row {
  align-items: stretch;
}

.focus-split .col-lg-6 {
  display: flex;
  flex-direction: column;
}


.focus-split .col-lg-6:last-child {
  display: flex;
}

@media (max-width: 992px) {
  .collage-stack {
    height: auto;
    min-height: unset;
  }
}

.video-frame {
  width: 75%;
  aspect-ratio: 9 / 16;
  margin-left: auto;
  border-radius: 12px;
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* nice inline crop */
  display: block;
}

/* 🔑 FULLSCREEN FIX */
video:fullscreen,
video:-webkit-full-screen {
  object-fit: contain !important;
  background: #000;
}

@media (max-width: 992px) {
  .focus-card {
    text-align: center;
  }

  .focus-card p {
    text-align: left; /* keeps paragraphs readable */
  }
}

/* =========================
   MISSION SECTION ALIGNMENT
   ========================= */

.mission-section {
  padding-top: 40px;
  padding-bottom: 8px;
}

.mission-section h2 {
  text-align: left;
}

.mission-section .lead {
  max-width: 640px;
}

.mission-events {
  padding-left: 12px;
}

/* Event card visual consistency */
.mission-events-compact {
  background: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  padding: 24px;
}

@media (max-width: 768px) {
  .mission-section h2,
  .mission-events-compact h3 {
    text-align: center;
  }

  .mission-section .lead,
  .mission-section p {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .mission-events {
    padding-left: 0;
  }

  .mission-events-compact {
    margin-top: 24px;
  }
}

.hero-text {
  max-width: 560px; /* matches Mission text rhythm */
}

.hero-text h1 {
  max-width: 520px;
}

.hero-text p {
  max-width: 520px;
}

@media (max-width: 1200px) {
  .hero-split {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero-text {
    padding-right: 0;
    max-width: 100%;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 32px;
    line-height: 1.25;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text p {
    font-size: 17px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-media {
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .nav-donate {
    display: block;
    order: -1;              /* forces it to top */
    width: 100%;
    text-align: center;
    padding: 12px;
    margin-bottom: 8px;
  }
}


.nav-donate {
  display: inline-flex;
  margin-left: 16px;
}

@media (max-width: 1200px) and (min-width: 769px) {
  .main-nav .nav-donate {
    display: none;
  }
}

/* Default: desktop + tablet */
.donate-header {
  display: inline-flex;
}

.donate-menu {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .donate-header {
    display: none;
  }

  .donate-menu {
    display: block;
    order: -1;
    text-align: center;
  }
}

.site-header .container {
  max-width: 1280px;   /* sweet spot */
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Mobile: stack buttons with vertical spacing */
@media (max-width: 768px) {
  .hero-actions {
      display: flex;
    flex-direction: column;
    align-items: center; /* keeps buttons centered */
    gap: 14px;           /* vertical space between buttons */
  }
}

@media (max-width: 768px) {
  /* Footer grid layout */
  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }

  /* Brand stays full width */
  .footer-brand {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
  }

  /* Centered 2-column group */
  .footer-links,
  .footer-contact {
    width: 100%;
    max-width: 420px; /* 👈 KEY */
  }

  /* Create centered two-column layout */
  .footer-links {
    grid-column: 1;
  }

  .footer-contact {
    grid-column: 1;
  }

  /* Wrap Explore + Connect visually */
  .footer-links,
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .footer-brand {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
  }

  .footer-links,
  .footer-contact {
    width: 160px; /* forces side-by-side */
    text-align: center;
  }
}

@media (max-width: 992px) {
  .content-layout {
    display: block;
    padding: 32px 20px;
  }
}

@media (max-width: 992px) {
  .sidebar {
    border-right: none;
    padding: 0;
    margin-bottom: 28px;
    text-align: center;
  }

  .sidebar h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .sidebar ul {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .sidebar li {
    margin: 0;
  }

  .sidebar a {
    padding: 6px 10px;
    font-weight: 600;
    border-radius: 4px;
  }

  .sidebar a[aria-current="page"] {
    background: #f7f9fb;
  }
}

@media (max-width: 992px) {
  /* Page titles */
  .page-intro h1 {
    text-align: center;
  }

  .page-intro .lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Section headings */
  .main-content h2 {
    text-align: center;
  }

  /* Keep paragraphs readable */
  .main-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 992px) {
  .video-frame {
    width: 90%;          /* smaller than desktop */
    max-width: 340px;    /* keeps it from getting huge */
    margin: 0 auto;      /* horizontal centering */
  }
}

@media (min-width: 769px) {
  .video-frame {
    width: 100%;
    max-width: 420px;   /* adjust: 400–460 is the sweet spot */
    margin-left: auto;  /* keeps right alignment */
  }
}

@media (min-width: 769px) {
  .video-frame video {
    object-fit: contain;
  }
}
@media (min-width: 769px) {
  .video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
  }

  /* Blurred extension of the cover photo */
  .video-frame::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image: url("/imgs/img14.jpg"); /* SAME as poster */
    background-size: cover;
    background-position: center;
    filter: blur(24px);
    transform: scale(.7);
    z-index: 0;
  }

  /* Actual video */
  .video-frame video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
  }
}

@media (max-width: 768px) {
  .video-frame::before {
    display: none;
  }

  .video-frame video {
    object-fit: cover;
  }
}

@media (max-width: 992px) {
  .content-layout {
    padding: 32px 20px;
  }

  .content-layout .main-content {
    width: 100%;
    max-width: 760px; /* matches index content rhythm */
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-media .carousel {
    height: auto;
  }

  .insta-slide {
    aspect-ratio: 3 / 4;     /* more phone-friendly */
    box-shadow: none;        /* shadows often cause overflow */
  }

  .hero-media {
    width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .collage-stack {
    grid-template-columns: 0.95fr 1.05fr; /* still 2 columns */
    gap: 12px;
    align-items: stretch;
  }

  /* LEFT: vertical image */
  .collage-vertical {
    height: 100%;
  }

  .collage-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 5; /* keeps tall look but controlled */
  }

  /* RIGHT: two stacked images */
  .collage-horizontals {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
  }

  .collage-horizontals img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto; /* 🔑 let height be dictated by grid */
  }
}

/* Align header with form */
.contact-layout .contact-header,
.contact-layout .contact-form {
  max-width: 640px;
}

/* Keep spacing clean */
.contact-layout .contact-header {
  margin-bottom: 28px;
  margin: 0 auto;
}

/* =========================
   COLLAGE FIX — MOBILE LANDSCAPE
   ========================= */
@media (max-width: 992px) and (orientation: landscape) {
  .collage-stack {
    height: 240px;          /* lock height only in landscape */
  }

  .collage-vertical,
  .collage-horizontals {
    height: 100%;
  }

  .collage-horizontals {
    grid-template-rows: 1fr 1fr;
  }

  .collage-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* =========================
   COLLAGE HEIGHT STABILIZER
   Fixes 912px–992px overflow
   ========================= */
@media (max-width: 992px) and (min-width: 912px) {
  .collage-stack {
    height: 260px;        /* anchor parent height */
  }

  .collage-vertical,
  .collage-horizontals {
    height: 100%;
  }

  .collage-horizontals {
    grid-template-rows: 1fr 1fr;
  }

  .collage-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* =========================
   HIDE SIDEBAR ON TABLET & MOBILE
   ========================= */
@media (max-width: 992px) {
  .sidebar {
    display: none;
  }

  .content-layout {
    display: block;
    padding: 32px 20px;
  }

  .content-layout .main-content {
    max-width: 760px;
    margin: 0 auto;
  }
}

/* =========================
   GLOBAL MOBILE CONTENT NORMALIZATION
   ========================= */
@media (max-width: 991px) {
  .content-layout {
    display: block;
    padding: 32px 20px;
  }

  .content-layout .main-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
  }

  .content-layout header {
    text-align: center;
    margin-bottom: 32px;
  }

  .content-layout header .lead {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
    padding: 20px;
  }

  .event-date {
    border-right: none;
    border-bottom: 1px solid #e2e6ea;
    padding-bottom: 10px;
    margin-bottom: 10px;
    min-width: unset;
  }

  .event-details h2 {
    text-align: left;
  }

  .event-link {
    margin-top: 8px;
    display: inline-block;
  }
}
