/* ApostolicMissions.css */

.missions2025 {
  width: 100%;
  background: #f9fafb;
  padding: 4rem 1.5rem;
}

.missions-header {
  text-align: center;
  margin-bottom: 3rem;
}

.missions-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #78477c;
  margin-bottom: 1rem;
}

.missions-header p {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto;
}

/* Grid Layout */
.missions-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .missions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .missions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mission Card */
.mission-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.mission-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Image */
.image-wrapper {
  height: 14rem;
  width: 100%;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-wrapper img:hover {
  transform: scale(1.05);
}

/* Content */
.mission-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mission-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4d2c50;
  margin-bottom: 0.5rem;
}

.mission-content .meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.mission-content .desc {
  flex-grow: 1;
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Button */
.mission-content .btn {
  align-self: flex-start;
  background: #9a49a1;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(71, 43, 73, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.mission-content .btn:hover {
  background: #1e40af;
  transform: translateY(-2px);
}
/* Prevent unwanted horizontal scrolling */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Ensure the section never exceeds viewport width */
.missions2025 {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Make sure images don't push layout sideways */
.image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}
