:root {
  --maroon: #790b0d;
  --ink: #10172a;
  --gold: #e9a20b;
  --blue: #061c64;
  --green: #075526;
  --amber: #85400b;

  --font-primary: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: Arial,Helvetica,sans-serif;
  color: var(--ink);
  background: #d6e8f0;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Soft blur on the background image only */
body::before {
  content: "";
  position: fixed;
  inset: -10px;
  background: url('assets/campus.webp') center center / cover no-repeat;
  filter: blur(5px);
  z-index: -2;
  pointer-events: none;
}

/* White glow behind the logo and welcome heading */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 25%,
    rgba(255,255,255,.95) 0%,
    rgba(255,255,255,.65) 22%,
    rgba(255,255,255,.20) 50%,
    rgba(255,255,255,.05) 100%
  );
  z-index: -1;
  pointer-events: none;
}

.portal {
  position: relative;
  z-index: 1;
  width: min(100%,1536px);
  margin: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(18px,3.2vh,34px) clamp(24px,6vw,92px) clamp(32px,6vh,70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.brand-logo {
  width: clamp(76px,8.6vw,124px);
  height: clamp(83px,13vh,132px);
  object-fit: contain;
  filter: drop-shadow(0 0 8px #ffffff90);
}

.school-name {
  font-size: clamp(27px,3.05vw,46px);
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1.08;
  margin: 2px 0 5px;
  color: var(--maroon);
}

.school-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: clamp(15px,1.73vw,26px);
  font-weight: 700;
  color: var(--maroon);
  white-space: nowrap;
  margin: 0;
}

.school-meta:before,.school-meta:after {
  content: "";
  width: clamp(35px,6vw,92px);
  height: 2px;
  background: linear-gradient(90deg,transparent,var(--gold));
}

.school-meta:after {
  transform: rotate(180deg);
}

.intro {
  margin: clamp(22px,3.5vh,39px) 0 clamp(24px,4.1vh,43px);
}

h1 {
  font-family: Georgia,'Times New Roman',serif;
  font-size: clamp(29px,3.5vw,55px);
  color: var(--maroon);
  line-height: 1.08;
  letter-spacing: -.7px;
  margin: 0 0 8px;
  font-weight: 700;
}

.intro p {
  font-size: clamp(17px,2vw,30px);
  color: #484848;
  margin: 0;
  line-height: 1.3;
}

.cards {
  width: min(100%,1256px);
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(14px,1.7vw,26px);
  align-items: stretch;
}

.card {
  --accent: var(--blue);
  --button-top: #087eb9;
  --button-bottom: #00356c;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;
  border: 7px solid white;
  border-radius: 29px;
  overflow: visible;
  box-shadow: 0 7px 14px #19230c42;
  color: inherit;
  text-decoration: none;
  transition: transform .2s,box-shadow .2s;
  min-width: 0;
}

.card.rbse {
  --accent: var(--green);
  --button-top: #279945;
  --button-bottom: #00541e;
}

.card.alumni {
  --accent: var(--amber);
  --button-top: #eda719;
  --button-bottom: #a36400;
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 2.08;
  object-fit: cover;
  border-radius: 23px 23px 18px 18px;
}

.card-icon {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: clamp(64px,5.9vw,90px);
  height: clamp(64px,5.9vw,90px);
  border: 7px solid white;
  border-radius: 50%;
  background: linear-gradient(var(--button-top),var(--button-bottom));
  color: #fff;
  margin-top: calc(-1 * clamp(32px,2.95vw,45px));
  flex: none;
}

.card-icon img {
  width: 53%;
  height: 53%;
}

.card-body {
  padding: 3px clamp(8px,1.4vw,20px) clamp(14px,2vh,22px);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card h2 {
  color: var(--accent);
  font-size: clamp(22px,2.37vw,25px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.9px;
  margin: 0 0 10px;
}

.card p {
  font-size: clamp(15px,1.4vw,20px);
  line-height: 1.35;
  margin: 0 0 clamp(20px,3vh,30px);
  letter-spacing: -.25px;
  max-width: 355px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(180deg,var(--button-top),var(--button-bottom));
  color: #fff;
  border-radius: 23px;
  min-height: 55px;
  width: 100%;
  max-width: 320px;
  padding: 11px 10px;
  font-size: clamp(15px,1.5vw,23px);
  font-weight: 700;
  margin-top: auto;
  white-space: nowrap;
  line-height: 1.2;
}

.cta .arrow {
  width: 25px;
  height: 25px;
  flex: none;
}

.card:focus-visible {
  outline: 3px solid #800b0b;
  outline-offset: 5px;
}

.card:active {
  transform: scale(.99);
}

@media(hover:hover) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 24px #19230c55;
  }
}

@media(max-width:1050px) and (min-width:761px) {
  .portal {
    padding-inline: 30px;
  }
  .card {
    border-width: 5px;
    border-radius: 22px;
  }
  .card-image {
    border-radius: 17px 17px 12px 12px;
  }
  .card-body {
    padding-inline: 9px;
  }
  .cta {
    gap: 8px;
    min-height: 48px;
    border-radius: 17px;
  }
  .cta .arrow {
    width: 20px;
    height: 20px;
  }
}

@media(max-width:760px) {
  .portal {
    width: 100%;
    max-width: 500px;
    min-height: 100svh;
    padding: clamp(24px,4vh,44px) 14px max(30px,env(safe-area-inset-bottom));
    justify-content: center;
  }
  .brand-logo {
    width: 59px;
    height: 73px;
  }
  .school-name {
    font-size: clamp(22px,6vw,30px);
    letter-spacing: -.6px;
    margin: 2px 0 5px;
  }
  .school-meta {
    font-size: clamp(12px,3.2vw,15px);
    color: #172030;
    gap: 9px;
  }
  .school-meta:before,.school-meta:after {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg,transparent,#3d4245);
  }
  .intro {
    margin: clamp(24px,4vh,35px) 0 clamp(22px,4vh,34px);
  }
  h1 {
    font-family: Arial,Helvetica,sans-serif;
    font-size: clamp(22px,5.6vw,28px);
    letter-spacing: -.5px;
    line-height: 1.15;
    max-width: 430px;
    margin: 0 auto 8px;
  }
  .intro p {
    font-size: clamp(13px,3.5vw,16px);
    color: #142030;
    line-height: 1.35;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }
  .card {
    display: grid;
    grid-template-columns: minmax(0,44%) minmax(0,56%);
    align-items: stretch;
    text-align: left;
    gap: 0;
    border: 0;
    padding: 9px;
    border-radius: 21px;
    box-shadow: 0 4px 12px #18240f2a;
    min-height: 124px;
    overflow: visible;
  }
  .card-image {
    height: 100%;
    width: 100%;
    aspect-ratio: auto;
    min-height: 109px;
    border-radius: 15px;
    object-fit: cover;
    object-position: center;
  }
  .card-icon {
    position: absolute;
    top: 50%;
    left: 44%;
    transform: translate(-50%,-50%);
    margin: 0;
    border: 4px solid #fff;
    width: 49px;
    height: 49px;
    z-index: 1;
  }
  .card-body {
    align-items: flex-start;
    text-align: left;
    padding: 4px 2px 3px 24px;
    justify-content: center;
    min-width: 0;
  }
  .card h2 {
    font-size: clamp(15px,4.2vw,21px);
    letter-spacing: -.45px;
    line-height: 1.12;
    margin: 0 0 5px;
  }
  .card p {
    font-size: clamp(11px,3.1vw,14px);
    letter-spacing: -.1px;
    line-height: 1.25;
    margin: 0 0 9px;
    max-width: none;
  }
  .cta {
    font-size: clamp(10px,2.8vw,13px);
    min-height: 32px;
    width: 100%;
    max-width: unset;
    padding: 7px 4px;
    gap: 5px;
    border-radius: 9px;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .cta .arrow {
    width: 15px;
    height: 15px;
  }
  .card.alumni h2 {
    font-size: clamp(14px,3.8vw,19px);
  }
}

@media(max-width:350px) {
  .portal {
    padding-inline: 10px;
  }
  .card {
    grid-template-columns: 41% 59%;
    padding: 7px;
  }
  .card-icon {
    left: 41%;
    width: 42px;
    height: 42px;
  }
  .card-body {
    padding-left: 22px;
  }
  .school-meta {
    gap: 6px;
  }
  .school-meta:before,.school-meta:after {
    width: 20px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .card {
    transition: none;
  }
}

.cta .arrow img {
  display: block;
  width: 100%;
  height: 100%;
}



/* Global typography for all devices */

html,
body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
button,
input,
select,
textarea {
  font-family: var(--font-primary);
}

/* Consistent font on mobile and tablet */

@media (max-width: 760px) {
  h1 {
    font-family: var(--font-primary);
  }
}