/* About Us page – card layout (uses design tokens from style.css) */

/* Wrapper for all about sections */
.about-cards {
  max-width: var(--container-max, 800px);
  margin: 0 auto;
  padding: var(--section-padding, 2rem) clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Shared card style – matches homepage service boxes & leader cards */
.about-cards .card {
  background: var(--color-white, #fff);
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  padding: clamp(1.5rem, 4vw, 2rem);
  transition: box-shadow var(--transition, 0.2s ease);
}

.about-cards .card:hover {
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

.about-cards .card h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  text-align: center;
  color: var(--color-primary, #2563eb);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(37, 99, 235, 0.15);
}

.about-cards .card p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  color: var(--color-text, #1e293b);
}

.about-cards .card p a {
  color: var(--color-primary, #2563eb);
  font-weight: 600;
  text-decoration: none;
}

.about-cards .card p a:hover {
  text-decoration: underline;
}

/* Ministries & Districts – list layout inside card */
.ministry-columns,
.district-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0;
}

.column,
.column1 {
  padding: 0;
}

.ministries ul,
.districts ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
}

.ministries ul li,
.districts ul li {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  margin-bottom: 0.4rem;
  line-height: 1.5;
  color: var(--color-text, #1e293b);
}

@media (max-width: 768px) {
  .ministry-columns,
  .district-columns {
    grid-template-columns: 1fr;
  }
}

/* Back to top (about page) */
#myBtn {
  display: none;
  position: fixed;
  bottom: clamp(1rem, 4vw, 1.5rem);
  right: clamp(1rem, 4vw, 1.5rem);
  z-index: 99;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary, #2563eb);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

#myBtn i {
  font-size: 1.5rem;
}

#myBtn:hover {
  background: var(--color-primary-dark, #1d4ed8);
  transform: translateY(-2px);
}
