/* =============================================
   MAKERERE MODERN SS — about.css
   Styles specific to the About page
   ============================================= */

/* --- ABOUT HERO --- */
.about-hero {
  position: relative;
  min-height: 88vh;
  background:
    linear-gradient(135deg, rgba(10,31,68,0.85) 0%, rgba(26,77,179,0.70) 100%),
    url('about image.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.about-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
  max-width: 680px;
}

/* --- HISTORY --- */
.history-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.history-text p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.history-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 400px;
}

/* --- PEOPLE CARDS --- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.people-grid--center {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 0 auto;
}

.people-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.people-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.people-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--blue-100);
  box-shadow: 0 2px 10px rgba(37,99,235,0.15);
}
.people-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.people-avatar--initials {
  background: var(--blue-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-display);
  overflow: visible;
}

.people-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 4px;
  line-height: 1.3;
}
.rip {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-family: var(--font-body);
  font-weight: 400;
}
.people-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.people-bio {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

/* --- STAFF IMAGE --- */
.staff-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.staff-image-wrap img {
  width: 100%;
  object-fit: cover;
  display: block;
  max-height: 500px;
}

/* --- EVENTS --- */
.events-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.events-list { display: flex; flex-direction: column; gap: 0; }
.event-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
}
.event-item:first-child { border-top: 1px solid var(--gray-100); }
.event-info h5 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 4px;
}
.event-info p { font-size: 0.82rem; color: var(--gray-500); margin: 0; line-height: 1.5; }
.event-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.event-badge--blue  { background: var(--blue-100); color: var(--blue-700, #1d4ed8); }
.event-badge--green { background: #dcfce7; color: #15803d; }
.event-badge--gold  { background: #fef9c3; color: #854d0e; }
.event-badge--teal  { background: #ccfbf1; color: #0f766e; }
.event-badge--red   { background: #fee2e2; color: #b91c1c; }

/* --- CAROUSEL --- */
.events-carousel { position: relative; }
.carousel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--blue-900);
}
.carousel-track { position: relative; }
.carousel-slide {
  display: none;
  width: 100%;
}
.carousel-slide.active { display: block; }
.carousel-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition);
  z-index: 10;
}
.carousel-btn:hover { background: var(--white); }
.carousel-btn--prev { left: 12px; }
.carousel-btn--next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}
.carousel-dot.active { background: var(--white); }

/* --- ANTHEM --- */
.anthem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.anthem-lyrics {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.anthem-lyrics h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-100);
}
.lyrics-body p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 16px;
  font-style: italic;
}
.anthem-motto {
  font-style: normal !important;
  color: var(--blue-900) !important;
  font-weight: 600;
  background: var(--blue-50);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--blue-500);
  margin-top: 8px;
}

.audio-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.audio-icon { font-size: 3rem; margin-bottom: 16px; }
.audio-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
}
.audio-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
}
.audio-player {
  width: 100%;
  border-radius: var(--radius-sm);
  outline: none;
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--blue-800);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
  z-index: 999;
}
.back-to-top:hover { background: var(--blue-900); transform: translateY(-2px); }
.back-to-top.visible { display: flex; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .history-inner { grid-template-columns: 1fr; gap: 36px; }
  .events-inner { grid-template-columns: 1fr; }
  .anthem-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .people-grid { grid-template-columns: 1fr; }
  .people-grid--center { grid-template-columns: 1fr; max-width: 320px; }
  .about-hero { min-height: 70vh; }
}
