.home-page {
  --cb-header: #1c1c1c;
  --cb-blue: #2d58c8;
  --cb-blue-btn: #2a4db7;
  --cb-blue-hover: #2342a0;
  --cb-text: #1a1a1a;
  --cb-muted: #4a4a4a;
  --cb-line: #d8d8d8;
  --cb-bg: #fff;
  --cb-footer: #1f1f1f;
  --cb-yellow: #f5c400;
  --cb-max: 1120px;
  --cb-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--cb-bg);
  color: var(--cb-text);
  font-family: var(--cb-font);
}

.home-page .wrap {
  width: min(var(--cb-max), calc(100% - 48px));
}

.home-page .utility {
  background: var(--cb-header);
}

.home-page .utility-inner {
  min-height: 56px;
}

.home-page .site-logo-img {
  height: 28px;
  max-width: 200px;
}

.home-page .sign-in {
  font-size: 14px;
  font-weight: 500;
  gap: 6px;
}

.home-page .sign-in:hover {
  color: #fff;
  text-decoration: underline;
}

.home-page .search {
  border-radius: 2px;
}

.home-page .search input {
  width: 168px;
  padding: 7px 10px;
  font-size: 14px;
}

.home-hero {
  background: #2f5ad6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.14'%3E%3Crect x='18' y='22' width='22' height='28' rx='2'/%3E%3Cpath d='M92 30l10 8v22l-10 6-10-6V38z'/%3E%3Ccircle cx='48' cy='108' r='12'/%3E%3Cpath d='M130 96c8 10 18 12 18 24 0 14-10 22-18 22s-18-8-18-22c0-12 10-14 18-24z'/%3E%3Cpath d='M24 128h28M28 122h20'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  padding: 72px 0 80px;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.home-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-hero p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.95);
}

.home-auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow: 0 10px 28px rgba(16, 36, 94, 0.18);
  text-align: center;
}

.home-auth-card .cb-btn {
  display: block;
  width: 100%;
  background: var(--cb-blue-btn);
  color: #fff;
  border: 0;
  border-radius: 28px;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.home-auth-card .cb-btn:hover {
  background: var(--cb-blue-hover);
  text-decoration: none;
}

.home-auth-card .create {
  display: inline-block;
  margin-top: 18px;
  color: var(--cb-blue);
  font-weight: 700;
  font-size: 16px;
}

.home-auth-card .create:hover {
  text-decoration: underline;
}

.home-actions {
  padding: 36px 0 8px;
}

.home-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.action-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 28px 22px 24px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: inherit;
  text-decoration: none;
}

.action-card:hover {
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.action-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #1e3f9a;
  color: #fff;
  display: grid;
  place-items: center;
}

.action-ico svg {
  width: 26px;
  height: 26px;
}

.action-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cb-text);
}

.home-programs {
  padding: 28px 0 48px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--cb-line);
}

.prog-col {
  padding: 22px 8px 8px 0;
  border-right: 1px solid var(--cb-line);
}

.prog-col:last-child {
  border-right: 0;
  padding-right: 0;
}

.prog-col:not(:first-child) {
  padding-left: 22px;
}

.prog-col h2 {
  margin: 0 0 8px;
  color: var(--cb-blue);
  font-size: 22px;
  font-weight: 800;
}

.prog-col a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 14px 0;
  border-top: 1px solid var(--cb-line);
  color: var(--cb-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.prog-col a:hover {
  color: var(--cb-blue);
  text-decoration: none;
}

.prog-col a span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.home-find {
  background: #8ec8ea;
  background-image: linear-gradient(90deg, rgba(142, 200, 234, 0.2), #8ec8ea 55%);
  overflow: hidden;
}

.home-find-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 280px;
  align-items: center;
  gap: 24px;
}

.home-find-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
}

.home-find-copy {
  padding: 36px 8px 36px 12px;
}

.bf-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 28px;
  color: #12315c;
  margin-bottom: 8px;
}

.bf-mark svg {
  width: 28px;
  height: 28px;
}

.home-find-copy p {
  margin: 0 0 18px;
  font-size: 22px;
  color: #1a1a1a;
}

.college-search {
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  max-width: 420px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.college-search input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.college-search button {
  border: 0;
  background: #fff;
  padding: 0 16px;
  cursor: pointer;
  color: #1a1a1a;
}

.home-info {
  padding: 56px 0 28px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.info-item {
  padding-top: 16px;
  border-top: 2px solid #111;
}

.info-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.info-item p {
  margin: 0;
  color: var(--cb-muted);
  font-size: 15px;
  line-height: 1.5;
}

.home-note {
  padding: 8px 0 48px;
}

.note-box {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  border: 1px solid #cfd6e4;
  border-radius: 4px;
  padding: 18px 20px;
  align-items: start;
}

.note-box svg {
  width: 28px;
  height: 28px;
  color: var(--cb-blue);
  margin-top: 2px;
}

.note-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.note-box p {
  margin: 0;
  color: var(--cb-muted);
  font-size: 14px;
}

.note-box a {
  font-weight: 700;
}

.home-page .to-top-wrap {
  width: min(var(--cb-max), calc(100% - 48px));
  margin: 0 auto -16px;
}

.home-page .to-top {
  background: var(--cb-yellow);
  color: #111;
  font-weight: 800;
  padding: 10px 14px 10px 12px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.home-page .to-top:hover {
  text-decoration: none;
  filter: brightness(0.96);
}

.home-page .footer {
  background: var(--cb-footer);
  padding: 56px 0 24px;
}

.home-page .footer-grid {
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 40px;
}

.home-page .footer h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.home-page .footer li {
  margin: 10px 0;
}

.home-page .legal {
  border-top-color: #f5c400;
  border-top-width: 3px;
  margin-top: 40px;
  justify-content: center;
  text-align: center;
  color: #cfcfcf;
}

@media (max-width: 900px) {
  .home-hero-inner,
  .home-actions-grid,
  .programs-grid,
  .home-find-inner,
  .info-grid,
  .home-page .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 40px 0 48px;
  }

  .prog-col,
  .prog-col:not(:first-child) {
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .home-find-photo {
    height: 220px;
  }
}
