body.portal-home {
  background: #f4f8fb;
  overflow-x: hidden;
}

.portal-home #header {
  border-bottom: 1px solid rgba(18, 66, 101, 0.10);
  box-shadow: 0 10px 34px rgba(18, 66, 101, 0.06);
}

.portal-home #header .logo a {
  color: #123c69;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portal-home .navbar a,
.portal-home .navbar a:focus {
  font-weight: 700;
}

.portal-home .navbar .portal-master-login {
  border: 1px solid rgba(18, 60, 105, 0.16);
  border-radius: 999px;
  margin-left: 24px;
  padding: 8px 16px;
}

.portal-home .navbar .portal-master-login:hover,
.portal-home .navbar .portal-master-login:focus {
  background: rgba(36, 135, 206, 0.08);
  border-color: rgba(36, 135, 206, 0.24);
}

.portal-home .navbar .getstarted,
.portal-home .navbar .getstarted:focus {
  background: linear-gradient(135deg, #123c69, #0ea5a0);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(18, 60, 105, 0.20);
  font-weight: 800;
}

.portal-home .navbar .getstarted:hover,
.portal-home .navbar .getstarted:focus:hover {
  background: linear-gradient(135deg, #0f3158, #0f766e);
}

.portal-home #hero {
  background:
    radial-gradient(circle at 17% 20%, rgba(14, 165, 160, 0.20) 0 14%, transparent 15%),
    radial-gradient(circle at 84% 18%, rgba(245, 158, 11, 0.18) 0 15%, transparent 16%),
    linear-gradient(135deg, rgba(244, 248, 251, 0.94), rgba(230, 242, 251, 0.90)),
    url("../../data/images/school.jpg") center/cover no-repeat;
  min-height: 100vh;
  overflow: hidden;
}

.portal-home #hero::before {
  background:
    linear-gradient(90deg, rgba(18, 60, 105, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 60, 105, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  inset: 0;
}

.portal-home #hero .container {
  padding-top: 118px;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  z-index: 1;
}

.portal-kicker {
  background: rgba(18, 60, 105, 0.08);
  border: 1px solid rgba(18, 60, 105, 0.12);
  border-radius: 999px;
  color: #123c69;
  display: inline-flex;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding: 9px 14px;
  text-transform: uppercase;
}

.portal-home #hero h1 {
  color: #102f4f;
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin-bottom: 18px;
}

.portal-home #hero h2 {
  color: #52657b;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 720px;
}

.portal-login-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 38px auto 0;
  max-width: 760px;
}

.portal-login-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(18, 60, 105, 0.16);
  color: #123c69;
  display: flex;
  gap: 16px;
  min-height: 118px;
  padding: 22px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.portal-login-card:hover,
.portal-login-card:focus {
  border-color: rgba(36, 135, 206, 0.35);
  box-shadow: 0 28px 70px rgba(18, 60, 105, 0.22);
  color: #123c69;
  transform: translateY(-3px);
}

.portal-login-icon {
  align-items: center;
  background: linear-gradient(135deg, #22c55e, #f59e0b);
  border-radius: 20px;
  color: #fff;
  display: flex;
  flex: 0 0 58px;
  font-size: 26px;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.portal-login-card-teacher .portal-login-icon {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
}

.portal-login-card strong {
  color: #102f4f;
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.portal-login-card small {
  color: #62758c;
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  .portal-home #header .logo {
    font-size: 22px;
    max-width: calc(100vw - 74px);
  }

  .portal-home .navbar-mobile .portal-master-login {
    border-radius: 12px;
    margin: 10px 15px;
    padding: 10px 20px;
  }

  .portal-home .navbar-mobile .getstarted,
  .portal-home .navbar-mobile .getstarted:focus {
    margin: 10px 15px;
  }
}

@media (max-width: 767.98px) {
  .portal-home #header {
    padding: 12px 0;
  }

  .portal-home #header .container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .portal-home #header .logo {
    font-size: 19px;
    line-height: 1.18;
    max-width: calc(100vw - 66px);
  }

  .portal-home #hero {
    min-height: auto;
    padding-bottom: 64px;
  }

  .portal-home #hero .container {
    max-width: 100%;
    padding-top: 112px;
  }

  .portal-home #hero h1 {
    font-size: clamp(36px, 12vw, 44px);
    letter-spacing: -0.045em;
    line-height: 1.02;
    margin-left: auto;
    margin-right: auto;
    max-width: calc(100vw - 28px);
    overflow-wrap: normal;
    white-space: normal;
  }

  .portal-home #hero h2 {
    font-size: 17px;
    max-width: calc(100vw - 36px);
  }

  .portal-login-grid {
    grid-template-columns: 1fr;
    max-width: min(360px, calc(100vw - 32px));
    width: 100%;
  }

  .portal-login-card {
    border-radius: 22px;
    min-height: 116px;
    padding: 20px;
  }

  .portal-login-card strong {
    font-size: 19px;
  }
}
