/* ============================================================
   admissions.css  —  Makerere Modern SS
   Page-specific styles; global tokens live in style.css
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.admissions-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admissions-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;   /* adjust % to frame your photo correctly */
  z-index: 0;
}

.admissions-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 71, 161, 0.55) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

.admissions-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

@media (max-width: 768px) {
  .admissions-hero-bg-img {
    object-position: center top;
  }
}

.section--blue {
  background-color: #0d47a1;
  color: #fff;                    /* makes all text white by default */
}

/* Process timeline readability */
.section--blue .section-eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.section--blue .section-title,
.section--blue .section-desc {
  color: #fff;
}

.section--blue .process-step-body h5 {
  color: #fff;
}

.section--blue .process-step-body p {
  color: rgba(255, 255, 255, 0.85);
}

/* FAQ readability */
.section--blue .faq-question {
  color: #fff;
}

.section--blue .faq-answer {
  color: rgba(255, 255, 255, 0.85);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Requirements grid ────────────────────────────────────── */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.req-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(13,71,161,.07);
  transition: transform .25s, box-shadow .25s;
}

.req-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(13,71,161,.13);
}

.req-card-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.4rem;
}

.req-icon { font-size: 2rem; }

.req-card-header h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2a4a;
  margin: 0;
}

.req-card-header h4 span {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: #0d47a1;
}

.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .95rem;
  color: #445;
  line-height: 1.5;
}

.req-check {
  color: #2e7d32;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ── Application Process timeline ─────────────────────────── */
.process-timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding-left: 1.5rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 2.4rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.25);
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
  position: relative;
}

.process-step-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step-body h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: .4rem 0 .3rem;
}

.process-step-body p {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  margin: 0;
  line-height: 1.6;
}

.process-download {
  text-align: center;
  margin-top: 2.5rem;
}

.process-download p {
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
  font-size: .95rem;
}

/* ── Fees table ───────────────────────────────────────────── */
.fees-table-wrap {
  overflow-x: auto;
  border-radius: .75rem;
  box-shadow: 0 4px 24px rgba(13,71,161,.1);
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  background: #fff;
}

.fees-table thead tr {
  background: #0d47a1;
  color: #fff;
}

.fees-table thead th {
  padding: 1rem 1.2rem;
  text-align: center;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .04em;
  border: none;
}

.fees-table tbody td {
  padding: .8rem 1.2rem;
  text-align: center;
  border-bottom: 1px solid #e8edf5;
  color: #334;
}

.fees-table tbody tr:nth-child(4n+1) td,
.fees-table tbody tr:nth-child(4n+2) td { background: #f4f7fb; }

.class-cell {
  font-weight: 700;
  color: #0d47a1 !important;
  font-size: 1rem;
}

.total-cell {
  font-weight: 700;
  color: #1a2a4a !important;
}

.badge-day,
.badge-boarding {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 2rem;
  font-size: .78rem;
  font-weight: 600;
}

.badge-day      { background: #e3f2fd; color: #0d47a1; }
.badge-boarding { background: #fff8e1; color: #e65100; }

/* ── Important Dates ─────────────────────────────────────── */
.dates-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: .75rem;
  padding: 1rem 1.4rem;
}

.date-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.date-label {
  flex: 1;
  font-weight: 500;
  color: #fff;
  font-size: .95rem;
}

.date-badge {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 2rem;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}

.date-badge--blue    { background: #1565c0; color: #fff; }
.date-badge--green   { background: #2e7d32; color: #fff; }
.date-badge--gold    { background: #f9a825; color: #1a1a1a; }
.date-badge--teal    { background: #00695c; color: #fff; }
.date-badge--red     { background: #c62828; color: #fff; }

/* ── Testimonials carousel ───────────────────────────────── */
.testimonials-carousel {
  max-width: 680px;
  margin: 0 auto;
}

.testimonials-track {
  position: relative;
  min-height: 200px;
}

.testimonial-card {
  display: none;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 1rem;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 4px 24px rgba(13,71,161,.08);
  text-align: center;
  position: relative;
}

.testimonial-card.active { display: block; }

.testimonial-quote {
  font-size: 4rem;
  line-height: 1;
  color: #0d47a1;
  opacity: .2;
  font-family: Georgia, serif;
  position: absolute;
  top: .5rem;
  left: 1.5rem;
}

.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  color: #445;
  line-height: 1.7;
  margin: 0 0 1.2rem;
}

.testimonial-author {
  font-weight: 600;
  color: #0d47a1;
  font-size: .9rem;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.testimonial-btn {
  background: none;
  border: 2px solid #0d47a1;
  color: #0d47a1;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.testimonial-btn:hover {
  background: #0d47a1;
  color: #fff;
}

.testimonials-dots { display: flex; gap: .5rem; }

.carousel-dot {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: #c5cfe0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.carousel-dot.active {
  background: #0d47a1;
  transform: scale(1.3);
}

/* ── FAQ accordion ───────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.faq-item {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: .75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-size: .97rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .2s;
}

.faq-question:hover { background: rgba(255,255,255,.08); }

.faq-arrow {
  font-size: .7rem;
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.4rem;
}

.faq-answer.open {
  max-height: 300px;
  padding: 0 1.4rem 1.2rem;
}

.faq-answer p {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin: 0;
}

.faq-answer a {
  color: #90caf9;
  text-decoration: underline;
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 640px) {
  .process-timeline { padding-left: 0; }
  .process-timeline::before { left: 1.4rem; }

  .date-item { flex-wrap: wrap; }
  .date-badge { margin-top: .3rem; }

  .fees-table thead th,
  .fees-table tbody td { padding: .65rem .6rem; font-size: .8rem; }
}
