:root {
  --page-bg: #faf9f5;
  --surface: #ffffff;
  --text-strong: #1a2238;
  --text-body: #667085;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page-bg);
  color: var(--text-strong);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.main-container {
  width: 100%;
  max-width: 1200px;
}

/* Logo Header */
.header-content {
  margin-bottom: 40px;
  text-align: left;
  height: auto;
}

.header-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 35px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 9999px;
  font-size: 13px;
  color: #344054;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
  font-weight: 500;
}

.hero-pill__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #50cd89;
  border: 3px solid #e8f7f0;
  flex-shrink: 0;
}

.hero-pill strong {
  font-weight: 700;
  color: #1a2238;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 400;
  color: #1a2238;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.hero-section p {
  font-size: 15px;
  color: var(--text-body);
  max-width: 620px;
  margin: 0;
  line-height: 1.5;
}

/* Section divider */
.section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e4e7ec;
}

.section-divider:not(:empty)::before {
  margin-right: 16px;
}

.section-divider:not(:empty)::after {
  margin-left: 16px;
}

/* Grid layout */
.institution-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.institution-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 18px;
  padding: 8px 4px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: var(--shadow-card);
  min-height: 340px;
  color: var(--text-strong);
}

.institution-card:hover .card-action-link {
  opacity: 0.85;
}

/* Logo circles */
.logo-outer-circle {
  width: 216px;
  height: 216px;
  border-radius: 50%;
  border: 1.5px dashed #c8cfe0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.logo-inner-circle {
  width: 183px;
  height: 183px;
  border-radius: 50%;
  background: #edf2fc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.institution-card--assessment .logo-inner-circle {
  background: #ebedfc;
}

.institution-card--guardian .logo-inner-circle {
  background: #ecf3fc;
}

.institution-card--campus .logo-inner-circle {
  background: #e8f1ff;
}

.institution-card--academy .logo-inner-circle {
  background: #fef0ee;
}

.institution-card--daycare .logo-inner-circle {
  background: #e5f9f6;
}

.card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.institution-card h2 {
  font-size: 15px;
  font-weight: 700;
  color: #1a2238;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.institution-card p {
  font-size: 12px;
  color: #667085;
  line-height: 1.45;
  margin: 0 0 16px 0;
  min-height: 52px;
}

.card-action-link {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: #0c3d9a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 12px;
  border-top: 5px solid #f2f4f7;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.institution-card--academy .card-action-link {
  color: #f05454;
}

.coming-soon-pill {
  margin-top: auto;
  background: #112852;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coming-soon-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f7ad2b;
}

/* Footer */
.footer-links {
  margin-top: 12px;
}

.footer-payment-strip {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

/* CSS payment badges */
.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #e4e7ec;
  background: #ffffff;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Visa */
.pay-badge--visa {
  padding: 0 10px;
  color: #1a1f71;
  font-weight: 900;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.04em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-width: 52px;
}

/* Mastercard */
.pay-badge--mastercard {
  width: 52px;
  gap: 0;
  overflow: hidden;
  padding: 0 10px;
}

.mc-circle {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mc-circle--left {
  background: #eb001b;
  margin-right: -5px;
  position: relative;
  z-index: 1;
}

.mc-circle--right {
  background: #f79e1b;
  position: relative;
  z-index: 0;
}

/* American Express */
.pay-badge--amex {
  background: #016fd0;
  border-color: #016fd0;
  padding: 0 8px;
}

.pay-badge--amex img {
  display: block;
}

.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #98a2b3;
  padding-bottom: 8px;
}

.footer-copyright a {
  color: #667085;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #1a2238;
  text-decoration: underline;
}

.footer-dot {
  color: #d0d5dd;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .institution-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .institution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-section h1 {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .institution-grid {
    grid-template-columns: 1fr;
  }
}
