﻿:root {
  --navy: #002147;
  --navy-deep: #001530;
  --navy-soft: #1a3a63;
  --maroon: #8b1518;
  --maroon-deep: #6e0f12;
  --sky: #6ea8d4;
  --white: #ffffff;
  --cream: #f4efe6;
  --cream-deep: #ebe3d4;
  --ink: #0f1c2e;
  --ink-soft: #4a5b70;
  --danger: #8b1518;
  --ok: #1f5c3a;
  --shadow: 0 28px 70px rgba(0, 21, 48, 0.45);

  --teal: var(--navy-soft);
  --teal-deep: var(--navy);
  --bronze: var(--maroon);
  --bronze-deep: var(--maroon-deep);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Cairo', sans-serif;
  color: var(--ink);
}

/* Show one language at a time */
html[data-lang="ar"] [lang="en"],
html[data-lang="en"] [lang="ar"],
html[data-lang="ar"] .logo-banner--en,
html[data-lang="en"] .logo-banner--ar {
  display: none !important;
}

html[data-lang="en"] body {
  font-family: 'Cairo', 'Segoe UI', sans-serif;
}

/* Language switcher */
.lang-switch {
  position: fixed;
  top: max(.75rem, env(safe-area-inset-top));
  inset-inline-end: max(.75rem, env(safe-area-inset-right));
  z-index: 40;
  display: inline-flex;
  padding: .2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 21, 48, 0.55);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 10px 28px rgba(0, 10, 24, 0.35);
  border-radius: 999px;
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  padding: .42rem .85rem;
  cursor: pointer;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.lang-switch__btn.is-active {
  background: linear-gradient(135deg, #fff 0%, #f4efe6 100%);
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.lang-switch__btn:hover:not(.is-active) {
  color: #fff;
}

/* ========== Search home ========== */
html:has(body.student-home--locked),
body.student-home--locked {
  height: 100%;
}

body.student-home--locked {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.7rem, 2vh, 1.25rem);
  padding-top: clamp(3rem, 8vh, 3.6rem);
  overflow-x: hidden;
  overflow-y: auto;
}

.portal-stage {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(.55rem, 1.5vh, .9rem);
}

.hero-type {
  width: 100%;
  flex: 0 0 auto;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.search-card {
  position: relative;
  width: 100%;
  padding: clamp(1rem, 2.2vh, 1.4rem) clamp(1.05rem, 2.6vw, 1.55rem) clamp(1.1rem, 2.4vh, 1.5rem);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 239, 230, 0.97) 55%, rgba(235, 227, 212, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 33, 71, 0.18),
    0 24px 60px rgba(0, 15, 35, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  animation: cardEnter .75s cubic-bezier(.2, .8, .2, 1) both;
}

.campus-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.campus-stage__photo {
  position: absolute;
  inset: -2%;
  background-image: var(--campus-bg);
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
  animation: campusDrift 22s ease-in-out infinite alternate;
}

.campus-stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(0, 21, 48, 0.78) 0%, rgba(0, 33, 71, 0.62) 48%, rgba(110, 15, 18, 0.55) 100%),
    radial-gradient(circle at 50% 18%, rgba(110, 168, 212, 0.18), transparent 42%);
}

.campus-stage__glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.campus-stage__glow::before {
  content: '';
  position: absolute;
  top: -25%;
  height: 150%;
  width: min(42vw, 340px);
  left: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 28%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(255, 255, 255, 0.08) 58%,
    transparent 78%
  );
  filter: blur(0.5px);
  transform: translate3d(-140%, 0, 0) skewX(-18deg);
  animation: pageBeam 3.6s linear infinite;
  will-change: transform;
}

@keyframes pageBeam {
  from { transform: translate3d(-140%, 0, 0) skewX(-18deg); }
  to { transform: translate3d(360%, 0, 0) skewX(-18deg); }
}

@keyframes campusDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

.hero-type__title {
  margin: 0;
  min-height: 1.2em;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vh, 1.55rem);
  line-height: 1.45;
}


.type-line {
  display: inline;
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-inline-start: 2px;
  background: #fff;
  vertical-align: -0.12em;
  animation: cursorBlink .85s steps(1) infinite;
}

@keyframes cursorBlink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.search-card__shine {
  display: none;
}

.search-card__frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(139, 21, 24, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 33, 71, 0.08);
  pointer-events: none;
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(22px) scale(.975); }
  to { opacity: 1; transform: none; }
}

@keyframes shineSweep {
  from { transform: translate3d(-130%, 0, 0); }
  to { transform: translate3d(130%, 0, 0); }
}

.search-card__brand {
  position: relative;
  text-align: center;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  margin-bottom: .75rem;
}

.brand-lockup--compact {
  margin-bottom: .45rem;
  gap: .45rem;
}

.logo-banner {
  width: auto;
  max-width: min(100%, 300px);
  height: auto;
  max-height: 56px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 3px 8px rgba(0, 33, 71, 0.14));
}

.brand-copy {
  margin: 0 auto .55rem;
  max-width: 26rem;
}

.brand-copy p {
  margin: 0;
  line-height: 1.35;
}

.brand-copy__ministry {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-soft);
}

.brand-copy__institute {
  margin-top: .15rem;
  font-family: 'Amiri', 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.6vh, 1.4rem);
  font-weight: 700;
  color: var(--navy);
}

html[data-lang="en"] .brand-copy__institute {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.brand-copy__city {
  margin-top: .1rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

.brand-copy__control {
  margin-top: .35rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--maroon);
}

.season-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  width: fit-content;
  max-width: 100%;
  margin: .65rem auto 0;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(139, 21, 24, 0.32);
  background: linear-gradient(180deg, #fff, rgba(139, 21, 24, 0.06));
  box-shadow: 0 8px 18px rgba(0, 33, 71, 0.08);
  text-align: center;
}

.season-chip span {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
}

.season-chip strong {
  font-size: 1.15rem;
  color: var(--maroon-deep);
  letter-spacing: .04em;
}

.search-card__divider {
  height: 1px;
  margin: .8rem 0 .75rem;
  background: linear-gradient(90deg, transparent, rgba(0, 33, 71, 0.22), rgba(139, 21, 24, 0.45), rgba(0, 33, 71, 0.22), transparent);
}

.search-card__intro {
  text-align: center;
  margin-bottom: .8rem;
}

.search-card__title {
  margin: 0;
}

.search-card__title [lang="ar"],
.search-card__title [lang="en"] {
  font-family: 'Amiri', 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 3.2vh, 1.75rem);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

html[data-lang="en"] .search-card__title [lang="en"] {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .03em;
}

.search-card__lead {
  margin: .4rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(.84rem, 1.8vh, .95rem);
  line-height: 1.45;
}

.search-form__label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
  color: var(--navy);
  font-size: .92rem;
  text-align: start;
}

.search-form__input {
  width: 100%;
  border: 1px solid rgba(0, 33, 71, 0.2);
  background: rgba(255, 255, 255, 0.92);
  padding: .8rem .9rem;
  font: inherit;
  font-size: 1.12rem;
  letter-spacing: .04em;
  text-align: center;
  outline: none;
  border-radius: 4px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.search-form__input:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(139, 21, 24, 0.16);
}

.search-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: .85rem;
  border: 0;
  cursor: pointer;
  padding: .9rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--navy) 0%, #0a2f5c 58%, var(--maroon-deep) 160%);
  box-shadow: 0 12px 28px rgba(0, 33, 71, 0.28);
  transition: transform .15s ease, filter .15s ease;
}

.search-form__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

@media (max-height: 700px) {
  .hero-type { display: none; }
  body.student-home--locked { padding-top: clamp(2.6rem, 7vh, 3.2rem); }
}

/* ========== Powered By footer ========== */
.powered-by {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: fit-content;
  margin: 1.1rem auto 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

.powered-by img {
  height: 20px;
  width: auto;
  display: block;
}

.powered-by:hover {
  color: #fff;
}

body.lp-home .powered-by {
  position: fixed;
  bottom: max(.7rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

/* ========== Landing page (split hero + card) ========== */
body.lp-home {
  min-height: 100dvh;
  margin: 0;
  padding: clamp(3.4rem, 7vh, 4rem) clamp(1rem, 4vw, 3rem) clamp(1.2rem, 4vh, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  background: #001530;
}

.campus-stage__veil--lp {
  background:
    linear-gradient(115deg, rgba(0, 13, 31, 0.93) 0%, rgba(0, 21, 48, 0.82) 42%, rgba(0, 33, 71, 0.55) 72%, rgba(110, 15, 18, 0.42) 100%),
    radial-gradient(ellipse at 18% 30%, rgba(0, 33, 71, 0.5), transparent 55%);
}

/* Aurora blobs */
.lp-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(70px) saturate(1.25);
  opacity: .55;
}

.lp-aurora__blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  will-change: transform;
}

.lp-aurora__blob--navy {
  top: -18%;
  inset-inline-start: -12%;
  background: radial-gradient(circle, rgba(38, 92, 170, 0.55), transparent 65%);
  animation: lpBlob 16s ease-in-out infinite alternate;
}

.lp-aurora__blob--maroon {
  bottom: -22%;
  inset-inline-end: -14%;
  background: radial-gradient(circle, rgba(139, 21, 24, 0.5), transparent 65%);
  animation: lpBlob 19s ease-in-out infinite alternate-reverse;
}

.lp-aurora__blob--sky {
  top: 30%;
  inset-inline-start: 38%;
  width: 30vmax;
  height: 30vmax;
  background: radial-gradient(circle, rgba(110, 168, 212, 0.35), transparent 65%);
  animation: lpBlob 13s ease-in-out infinite alternate;
}

@keyframes lpBlob {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6%, -7%, 0) scale(1.12); }
}

/* Blueprint grid */
.lp-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 45%, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 45%, black 15%, transparent 72%);
}

/* Floating particles */
.lp-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.lp-particles span {
  --i: 0;
  position: absolute;
  bottom: -12px;
  inset-inline-start: calc((var(--i) * 7.3%) + 2%);
  width: calc(3px + (var(--i) - 7) * (var(--i) - 7) * 0.04px);
  height: calc(3px + (var(--i) - 7) * (var(--i) - 7) * 0.04px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: lpFloat calc(9s + var(--i) * 1.3s) linear infinite;
  animation-delay: calc(var(--i) * -1.7s);
}

@keyframes lpFloat {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: .7; }
  85% { opacity: .35; }
  100% { transform: translateY(-105vh) translateX(2vw); opacity: 0; }
}

/* Layout */
.lp {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 460px);
  align-items: center;
  gap: clamp(1.6rem, 5vw, 4.5rem);
}

/* Reveal animation */
.lp-reveal {
  opacity: 0;
  animation: lpReveal .7s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 120ms + 80ms);
}

@keyframes lpReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---- Hero side ---- */
.lp-hero {
  color: #fff;
  text-align: start;
  padding-block: 1rem;
}

.lp-hero__ministry {
  margin: 0 0 .6rem;
  font-size: clamp(.8rem, 1.6vh, .92rem);
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.lp-hero__title {
  margin: 0;
  font-family: 'Amiri', 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  white-space: nowrap;
  line-height: 1.42;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.55);
  background: linear-gradient(100deg, #fff 30%, #d8c9a8 55%, #fff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% 100%;
  animation: lpReveal .7s cubic-bezier(.2,.8,.2,1) forwards, lpShimmer 7s ease-in-out 1.2s infinite;
}

html[data-lang="en"] .lp-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
}

@keyframes lpShimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.lp-hero__rule {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1.05rem 0;
  max-width: 21rem;
}

.lp-hero__rule i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent);
}

.lp-hero__rule i:first-child {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55));
}

.lp-hero__rule b {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--maroon);
  box-shadow: 0 0 10px rgba(139, 21, 24, 0.9);
}

.lp-hero__type {
  margin: 0;
  min-height: 2.9em;
  font-size: clamp(1rem, 2.4vh, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Department chips */
.lp-depts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.35rem;
}

.lp-dept {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .95rem;
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.lp-dept:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.lp-dept svg {
  width: 1.05rem;
  height: 1.05rem;
  color: #d8c9a8;
}

/* ---- Card side ---- */
.lp-cardwrap {
  perspective: 1200px;
}

.lp-card {
  position: relative;
  border-radius: 18px;
  animation: lpCardFloat 7s ease-in-out infinite;
}

@keyframes lpCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Animated gradient border */
.lp-card__border {
  position: absolute;
  inset: -1.5px;
  border-radius: 19px;
  background: conic-gradient(
    from var(--lp-angle, 0deg),
    rgba(139, 21, 24, 0.85),
    rgba(216, 201, 168, 0.9),
    rgba(0, 33, 71, 0.7),
    rgba(110, 168, 212, 0.8),
    rgba(139, 21, 24, 0.85)
  );
  animation: lpBorderSpin 6s linear infinite;
  filter: blur(0.5px);
}

@property --lp-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes lpBorderSpin {
  to { --lp-angle: 360deg; }
}

@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .lp-card__border { background: linear-gradient(135deg, rgba(139,21,24,.8), rgba(0,33,71,.8)); animation: none; }
}

.lp-card__inner {
  position: relative;
  border-radius: 17px;
  padding: clamp(1.15rem, 2.6vh, 1.6rem) clamp(1.15rem, 2.5vw, 1.7rem) clamp(1.3rem, 2.8vh, 1.8rem);
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 241, 232, 0.98) 55%, rgba(238, 230, 216, 0.99) 100%);
  box-shadow:
    0 30px 80px rgba(0, 10, 26, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  overflow: hidden;
}

.lp-card__inner::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--maroon), #d8c9a8, var(--navy), transparent);
}

.lp-card__head {
  text-align: center;
}

/* Season pill */
.lp-season {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: fit-content;
  max-width: 100%;
  margin: .8rem auto;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 33, 71, 0.16);
  background: linear-gradient(180deg, #fff, rgba(0, 33, 71, 0.05));
  box-shadow: 0 6px 16px rgba(0, 33, 71, 0.1);
}

.lp-season__badge {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  box-shadow: 0 4px 10px rgba(139, 21, 24, 0.35);
}

.lp-season__badge svg {
  width: 1rem;
  height: 1rem;
  animation: lpSpinSlow 14s linear infinite;
}

@keyframes lpSpinSlow {
  to { transform: rotate(360deg); }
}

.lp-season__text {
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
}

.lp-season__year {
  font-size: 1.05rem;
  color: var(--maroon-deep);
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}

.lp-card__title {
  margin: .2rem 0 0;
  text-align: center;
  font-family: 'Amiri', 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 3vh, 1.65rem);
  color: var(--navy);
  line-height: 1.3;
}

html[data-lang="en"] .lp-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.lp-card__lead {
  margin: .4rem 0 1rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: clamp(.84rem, 1.8vh, .95rem);
  line-height: 1.5;
}

/* Form */
.lp-form__label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700;
  color: var(--navy);
  font-size: .92rem;
  text-align: start;
}

.lp-form__field {
  position: relative;
}

.lp-form__icon {
  position: absolute;
  inset-inline-start: .85rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: rgba(0, 33, 71, 0.4);
  pointer-events: none;
  transition: color .2s ease;
}

.lp-form__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.lp-form__field:focus-within .lp-form__icon {
  color: var(--maroon);
}

.lp-form__input {
  width: 100%;
  border: 1.5px solid rgba(0, 33, 71, 0.18);
  background: #fff;
  padding: .95rem 1rem;
  padding-inline-start: 2.6rem;
  font: inherit;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  color: var(--navy);
  outline: none;
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.lp-form__input::placeholder {
  font-weight: 400;
  letter-spacing: 0;
  font-size: .95rem;
  color: rgba(15, 28, 46, 0.4);
}

.lp-form__input:focus {
  border-color: var(--maroon);
  box-shadow:
    0 0 0 4px rgba(139, 21, 24, 0.14),
    0 8px 24px rgba(0, 33, 71, 0.12);
  transform: translateY(-1px);
}

.lp-form__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: .9rem;
  border: 0;
  cursor: pointer;
  padding: .95rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, #0a2f5c 52%, var(--maroon-deep) 165%);
  box-shadow:
    0 14px 32px rgba(0, 33, 71, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.lp-form__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(0, 33, 71, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.lp-form__btn:active {
  transform: translateY(0);
}

.lp-form__btn-shine {
  position: absolute;
  top: -30%;
  height: 160%;
  width: 3rem;
  inset-inline-start: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: lpBtnShine 3.4s ease-in-out infinite;
  pointer-events: none;
}

html[dir="rtl"] .lp-form__btn-shine {
  animation-name: lpBtnShineRtl;
}

@keyframes lpBtnShine {
  0%, 55% { transform: translateX(-160%) skewX(-18deg); }
  85%, 100% { transform: translateX(520%) skewX(-18deg); }
}

@keyframes lpBtnShineRtl {
  0%, 55% { transform: translateX(160%) skewX(18deg); }
  85%, 100% { transform: translateX(-520%) skewX(18deg); }
}

.lp-form__btn-arrow {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform .2s ease;
}

html[dir="rtl"] .lp-form__btn-arrow {
  transform: scaleX(-1);
}

.lp-form__btn:hover .lp-form__btn-arrow {
  transform: translateX(3px);
}

html[dir="rtl"] .lp-form__btn:hover .lp-form__btn-arrow {
  transform: scaleX(-1) translateX(3px);
}

/* Responsive */
@media (max-width: 900px) {
  body.lp-home {
    padding-top: clamp(3.6rem, 8vh, 4.2rem);
  }

  .lp {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    width: min(560px, 100%);
  }

  .lp-hero {
    text-align: center;
    padding-block: 0;
  }

  .lp-hero__title {
    white-space: normal;
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .lp-hero__rule {
    margin-inline: auto;
  }

  .lp-depts {
    justify-content: center;
  }

  .lp-hero__type {
    min-height: 2.6em;
  }
}

@media (max-height: 640px) and (max-width: 900px) {
  .lp-hero__type,
  .lp-hero__ministry { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-aurora__blob,
  .lp-particles span,
  .lp-card,
  .lp-card__border,
  .lp-form__btn-shine,
  .lp-season__badge svg,
  .lp-hero__title { animation: none !important; }
  .lp-reveal { animation-duration: .01s; }
}

/* ========== Legacy search helpers (unused home) ========== */
.geo-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 78%);
}

/* ========== Result reveal page ========== */
body.result-page {
  min-height: 100vh;
  padding: clamp(3.2rem, 6vh, 3.8rem) .75rem 1.5rem;
  background: #001530;
  overflow-x: hidden;
  overflow-y: auto;
}

.campus-stage__veil--result {
  background:
    linear-gradient(165deg, rgba(0, 21, 48, 0.82) 0%, rgba(0, 33, 71, 0.7) 45%, rgba(110, 15, 18, 0.58) 100%),
    radial-gradient(circle at 50% 0%, rgba(110, 168, 212, 0.16), transparent 40%);
}

.result-stage {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
}

.result-cert {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 2.2vh, 1.45rem) clamp(1rem, 2.4vw, 1.6rem) clamp(1.15rem, 2.6vh, 1.6rem);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 239, 230, 0.97) 55%, rgba(235, 227, 212, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 33, 71, 0.16),
    0 30px 70px rgba(0, 15, 35, 0.42);
  animation: cardEnter .8s cubic-bezier(.2, .8, .2, 1) both;
}

.result-cert--blocked,
.result-cert--missing {
  min-height: min(480px, calc(100dvh - 2.5rem));
}

.result-cert--blocked .result-state,
.result-cert--missing .result-state {
  flex: 1 1 auto;
}

.result-cert__shine {
  display: none;
}

.result-cert__frame {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(139, 21, 24, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 33, 71, 0.08);
  pointer-events: none;
}

.result-cert__ornament {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(139, 21, 24, 0.35);
  pointer-events: none;
}

.result-cert__ornament--tl {
  top: 18px;
  right: 18px;
  border-left: 0;
  border-bottom: 0;
}

.result-cert__ornament--br {
  bottom: 18px;
  left: 18px;
  border-right: 0;
  border-top: 0;
}

.result-brand {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.result-hero {
  text-align: center;
  margin-bottom: 1.2rem;
  position: relative;
}

.result-kicker {
  margin: 0 0 .45rem;
  display: inline-block;
  padding: .3rem .75rem;
  border: 1px solid rgba(0, 33, 71, 0.14);
  background: rgba(0, 33, 71, 0.04);
  color: var(--navy-soft);
  font-size: .78rem;
  font-weight: 700;
}

html[data-lang="en"] .result-kicker {
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
}

.result-title {
  margin: 0;
}

.result-title [lang="ar"],
.result-title [lang="en"] {
  font-family: 'Amiri', 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

html[data-lang="en"] .result-title [lang="en"] {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .02em;
}

.result-subtitle {
  margin: .55rem 0 0;
  color: var(--maroon-deep);
  font-weight: 600;
  font-size: .95rem;
}

html[data-lang="en"] .result-subtitle {
  font-weight: 500;
  color: var(--ink-soft);
}

.score-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: .9rem 1.5rem;
  margin: 0 0 1.2rem;
  padding: .8rem 1.1rem;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.05), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(0, 33, 71, 0.1);
  border-block-start: 3px solid var(--maroon);
}

.score-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-width: 5.5rem;
  text-align: center;
}

.score-strip__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

.score-strip__value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.score-strip__value small {
  font-size: .8rem;
  color: var(--maroon);
  font-weight: 700;
  margin-inline-start: .25rem;
}

.score-strip__value--grade {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--maroon);
}

.score-strip__value--grade.is-pass {
  color: var(--ok);
}

.score-strip__value--grade.is-note {
  font-family: 'Cairo', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--maroon-deep);
  max-width: 13rem;
}

.score-strip__sep {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(0, 33, 71, 0.22), transparent);
}

.score-ring--sm {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #ffffff 56%, transparent 57%),
    conic-gradient(var(--maroon) calc(var(--p) * 1%), rgba(0, 33, 71, 0.12) 0);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.75),
    0 10px 22px rgba(0, 33, 71, 0.16);
  animation: ringIn 1.1s ease both;
}

@keyframes ringIn {
  from { filter: saturate(.2); transform: scale(.92); }
  to { filter: none; transform: none; }
}

.score-ring__value {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.identity-item {
  padding: .75rem .8rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 33, 71, 0.1);
  border-inline-start: 3px solid var(--navy);
  transition: transform .2s ease, box-shadow .2s ease;
}

.identity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 33, 71, 0.08);
}

.identity-item span {
  display: block;
  font-size: .72rem;
  color: var(--ink-soft);
  line-height: 1.25;
}

.identity-item strong {
  display: block;
  margin-top: .25rem;
  color: var(--ink);
  font-size: 1.02rem;
}

.grade-panel {
  margin-bottom: 1rem;
  position: relative;
  border: 1px solid rgba(0, 33, 71, 0.1);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.grade-panels-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin-bottom: 1rem;
  align-items: start;
}

.grade-panels-row .grade-panel {
  margin-bottom: 0;
  height: 100%;
}

.grade-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .7rem .85rem;
  background: linear-gradient(90deg, rgba(0, 33, 71, 0.08), rgba(139, 21, 24, 0.06));
  border-bottom: 1px solid rgba(0, 33, 71, 0.08);
}

.grade-panel__head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.grade-panel__count {
  min-width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}

.grade-list { display: grid; }

.grade-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .7rem .85rem;
  border-bottom: 1px solid rgba(0, 33, 71, 0.08);
}

.grade-row:last-child { border-bottom: 0; }
.grade-row:nth-child(even) { background: rgba(0, 33, 71, 0.025); }

.grade-row__course {
  color: var(--ink);
  font-weight: 600;
}

.grade-row__mark {
  min-width: 2.8rem;
  text-align: center;
  padding: .28rem .45rem;
  font-weight: 800;
  color: var(--navy);
  background: rgba(0, 33, 71, 0.06);
  border: 1px solid rgba(0, 33, 71, 0.16);
}

.grade-row__mark.is-pass {
  color: var(--ok);
  background: rgba(31, 92, 58, 0.08);
  border-color: rgba(31, 92, 58, 0.24);
}

.grade-row__mark.is-fail {
  color: var(--maroon-deep);
  background: rgba(139, 21, 24, 0.08);
  border-color: rgba(139, 21, 24, 0.22);
}

.result-state {
  text-align: center;
  padding: 2.2rem 1rem 1.4rem;
  position: relative;
}

.result-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto .9rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 21, 24, 0.22);
  border-radius: 50%;
  color: var(--maroon);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(139, 21, 24, 0.08));
  box-shadow: 0 10px 22px rgba(0, 33, 71, 0.1);
}

.result-state__icon svg {
  display: block;
}

.result-state h2 {
  margin: 0;
  font-family: 'Amiri', 'Cormorant Garamond', serif;
  color: var(--navy);
  font-size: 1.55rem;
}

html[data-lang="en"] .result-state h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.result-state p {
  margin: .7rem 0 0;
  color: var(--ink-soft);
}

.result-actions {
  display: flex;
  gap: .8rem;
  margin-top: 1.15rem;
  padding-top: .35rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.result-cert--blocked .result-actions,
.result-cert--missing .result-actions {
  margin-top: auto;
  padding-top: .85rem;
}

.result-actions__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: .85rem 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, #0a2f5c 60%, var(--maroon-deep) 160%);
  box-shadow: 0 12px 28px rgba(0, 33, 71, 0.22);
  transition: transform .15s ease, filter .15s ease;
  opacity: 1;
}

.result-actions__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp .65s ease forwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}

@keyframes revealUp {
  to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .identity-grid {
    grid-template-columns: 1fr;
  }

  .score-strip {
    gap: .75rem 1rem;
  }

  .score-strip__sep {
    display: none;
  }

  .result-cert__ornament {
    width: 36px;
    height: 36px;
  }

  .grade-list {
    grid-template-columns: 1fr;
  }

  .grade-panels-row {
    grid-template-columns: 1fr;
  }

  .identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


