/* About Us header with background + overlay */
.about-header {
  position: relative;
  background-image: url("images/about.jpg"); /* adjust path if needed */
  background-size: cover;
  background-position: center top; /* move visible part down */
  background-repeat: no-repeat;

  padding: 80px 20px;
  margin-bottom: 2rem;

  border-radius: 12px;
  text-align: center;
  overflow: hidden; /* keeps overlay inside rounded corners */
}

.about-header::before {
  content: "";
  position: absolute;
  inset: 0; /* covers the whole header */
  background: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
  border-radius: inherit;
  z-index: 0;
}

.about-header h1,
.about-header p {
  position: relative;
  color: white;
  z-index: 1;
}

.about-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-header p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Mission / Vision / Values cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.info-card {
  background: var(--surface);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(11, 18, 32, 0.03);
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 880px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
/* Smooth transition for cards */
.info-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  z-index: 0;
}

/* Big enlarge effect */
.info-card:hover {
  transform: scale(1.5); /* much bigger */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 10; /* bring to front */
}

/* Ensure surrounding cards don't overlap weirdly */
.cards-grid {
  position: relative;
}
/* =========================
   Responsive About Page
   ========================= */
.info-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  z-index: 0;
}

.info-card:hover {
  transform: scale(1.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 10;
}

@media (max-width: 880px) {
  .cards-grid { grid-template-columns: 1fr; }
  .info-card:hover { transform: scale(1.05); } /* smaller zoom on phones */
  .about-header h1 { font-size: 1.8rem; }
  .about-header p { font-size: 1rem; }
}
