/* =============================================
   KYEBAMBE GIRLS — ABOUT PAGE (about.css)
   ============================================= */

/* ============= OUR STORY ============= */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-text p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 16px;
}

.story-text p:last-child { margin-bottom: 0; }

.story-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px 200px;
  gap: 14px;
}

.story-img-main {
  grid-column: 1 / -1;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.story-img-secondary {
  position: relative;
  grid-column: 1 / -1;
}

.story-img-secondary img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.story-year-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--primary-blue);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.story-year-badge span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.story-year-badge strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

/* ============= TIMELINE ============= */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-blue), var(--accent-pink));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 36px);
  margin-bottom: 40px;
  position: relative;
}

.timeline-item.timeline-right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 36px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-blue);
  transform: translateX(-50%);
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-pink);
  box-shadow: 0 0 0 3px var(--accent-pink);
  transform: translateX(-50%) scale(1.2);
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-blue);
  max-width: 340px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.timeline-right .timeline-card {
  border-left: none;
  border-right: 4px solid var(--accent-pink);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.timeline-item.timeline-right .timeline-card .timeline-year {
  background: var(--accent-pink);
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.timeline-card p {
  font-size: 0.86rem;
  color: #555;
  line-height: 1.7;
}

/* ============= VMV CARDS ============= */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vmv-card {
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.vmv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.vmv-vision { background: linear-gradient(135deg, #0B57A4, #1a8ad4); color: var(--white); }
.vmv-mission { background: linear-gradient(135deg, #E6007E, #ff4db8); color: var(--white); }
.vmv-values { background: linear-gradient(135deg, #E36017, #ffad6a); color: var(--white); }

.vmv-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--white);
}

.vmv-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}

.vmv-card p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.12);
  padding: 8px 14px;
  border-radius: 8px;
  text-align: left;
}

.value-item i { font-size: 0.85rem; }

/* ============= ANTHEM ============= */
.anthem-card {
  background: linear-gradient(135deg, #fdf6ff 0%, #f0f4ff 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  border: 1px solid rgba(182,154,214,0.3);
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  margin: 0 auto;
}

.anthem-icon {
  font-size: 2.5rem;
  color: var(--soft-lavender);
  margin-bottom: 28px;
}

.anthem-verses {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.anthem-verse {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
}

.anthem-verse p {
  font-size: 1rem;
  font-style: italic;
  color: var(--dark-text);
  line-height: 2;
  font-weight: 400;
}

.anthem-verse p strong {
  color: var(--primary-blue);
  font-weight: 700;
}

.anthem-divider {
  width: 1px;
  background: rgba(182,154,214,0.4);
  align-self: stretch;
}

.anthem-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(182,154,214,0.3);
  font-size: 0.8rem;
  color: #888;
}

.anthem-footer i { color: var(--uniform-orange); }

/* ============= CHAPEL SECTION ============= */
.chapel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.chapel-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.chapel-text p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 16px;
}

.chapel-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.chapel-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-blue);
  background: rgba(11,87,164,0.06);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-blue);
}

.chapel-feat i { color: var(--accent-pink); }

/* ============= BADGE MOTTO ============= */
.badge-motto-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}

.badge-display img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 8px 30px rgba(11,87,164,0.2));
  animation: floatUp 3s ease-in-out infinite;
}

.motto-display {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-pink));
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 20px;
  text-align: center;
}

.motto-rutooro {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 8px;
}

.motto-english {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--white);
  font-weight: 500;
  margin-bottom: 6px;
}

.motto-lang {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

.badge-text p {
  font-size: 0.93rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 12px;
}

.badge-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.badge-stat {
  text-align: center;
  padding: 18px;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--primary-blue);
}

.badge-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.badge-stat span {
  font-size: 0.72rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============= BOARD ============= */
.board-layout {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.board-layout img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.board-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #555;
  font-style: italic;
  padding: 16px;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
}

.board-caption i { color: var(--primary-blue); font-size: 1rem; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .badge-motto-layout { grid-template-columns: 280px 1fr; gap: 40px; }
  .chapel-layout { grid-template-columns: 1fr; gap: 32px; }
  .story-layout { grid-template-columns: 1fr; gap: 36px; }
  .story-imgs { grid-template-rows: auto auto; }
  .story-img-main { height: 220px; }
  .story-img-secondary img { height: 160px; }
}

@media (max-width: 768px) {
  .vmv-grid { grid-template-columns: 1fr; }
  .badge-motto-layout { grid-template-columns: 1fr; }
  .badge-display img { max-width: 220px; }
  .badge-stats { grid-template-columns: 1fr; gap: 10px; }
  .chapel-features { grid-template-columns: 1fr; }
  .anthem-card { padding: 32px 20px; }
  .anthem-verses { flex-direction: column; align-items: center; }
  .anthem-divider { width: 80px; height: 1px; align-self: auto; }

  /* Timeline mobile: stacked single column */
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item.timeline-right {
    justify-content: flex-start;
    padding-left: 52px;
    padding-right: 0;
  }
  .timeline-dot { left: 20px; }
  .timeline-card,
  .timeline-item.timeline-right .timeline-card {
    max-width: 100%;
    border-left: 4px solid var(--primary-blue);
    border-right: none;
  }
}

@media (max-width: 500px) {
  .anthem-card { padding: 24px 16px; }
  .anthem-verse { min-width: 100%; }
}
