/* ===== Base typography (Poppins) ===== */
html { scroll-behavior: smooth; }

body{
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.text-ems{ color:#2b3b67; }
.text-nav{ color:#2b3b67; }
.text-nav:hover{ color:#203256; }
.text-muted2 {color: #2B3B67;}
.nowrap{ white-space: nowrap; }

/* Add sticky-nav offset for anchor jumps */
#features, #modules, #faq { scroll-margin-top: 84px; }

/* ===== Hero section ===== */
.hero{ padding:48px 0 56px; }

/* Keep the artwork column from bleeding left */
.art-col{ position: relative; overflow: hidden; }

/* Right-side art: TWO layered backgrounds
   1) human (top)  2) blob (bottom, pushed further right) */
.hero-art{
  height: clamp(420px, 60vh, 620px);
  background-image: url("../images/hero_background_human.png"),
                    url("../images/hero_background.png");
  background-repeat: no-repeat, no-repeat;

  /* Top illustration must always be fully visible */
  background-size: contain, 140% auto;

  /* human hugs right-bottom; blob is nudged further to the right */
  background-position:
    right bottom,
    calc(100% + 160px) bottom;
}

/* Sub copy width + tone like sample */
.hero-subcopy{
  max-width: 440px;
  font-size: 16px;
}

/* Gradient text for “School, Institute & Academy” */
.highlight{
  background: linear-gradient(90deg,#6aa8ff,#c76bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  line-height: 1.15;
}

/* ===== Button (rounded, gradient, soft shadow) ===== */
.btn-gradient{
  color:#fff;
  border:0;
  border-radius:999px;
  background: linear-gradient(180deg,#6fb1ff,#7dd3a7);
  box-shadow: 0 10px 20px rgba(109,164,255,.25), inset 0 3px 8px rgba(255,255,255,.35);
}
.btn-gradient:hover{ color:#fff; opacity:.95; }

/* ===== Responsive tweaks ===== */
@media (max-width: 991.98px){
  .hero{ padding:36px 0 40px; }
  .art-col{ overflow: visible; }
  .hero-art{
    height: clamp(360px, 52vh, 560px);
    background-size: contain, 180% auto;
    background-position: center bottom, center bottom;
  }
}

/* Extra wide screens */
@media (min-width: 1400px){
  .hero-art{
    background-size: contain, 130% auto;
    background-position: right 2% bottom, calc(100% + 220px) bottom;
  }
}

/* ===== MODULES SECTION BACKGROUND ===== */
.modules-section{
  background: linear-gradient(to bottom, #ffffff 0 44%, #efe5ff 44% 100%);
  position: relative;
}
.modules-section::before{
  content:"";
  position:absolute; left:-40%; bottom:-55%;
  width:1400px; height:1400px; border-radius:50%;
  background:#e9d6ff;
  z-index:0;
}

/* Dashboard image polish */
.dash-shot{
  max-width: 980px;
  border: 1px solid rgba(0,0,0,.06);
}

/* Module card + hover zoom */
.module-card{
  min-height: 260px;
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 8px;

  background: #fff;
  border: 2px solid rgba(42,60,130,0.15);
  border-radius: 18px;
  box-shadow: 0 6px 14px rgba(23,27,55,.06);

  transition:
    transform .16s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background-color .2s ease;
}
.module-card h5{ margin-bottom: .25rem; font-weight: 700; }
.module-card p{ margin: 0; color: #6b7392; line-height: 1.55; }

.module-card:hover,
.module-card:focus-within{
  transform: translateY(-10px);
  border-color: #6a8bff;
  box-shadow: 0 14px 28px rgba(86, 104, 237, 0.889);
  background-color: #fbfbff;
}

@media (max-width: 991.98px){
  .dash-shot{ max-width: 100%; }
  .module-card{
    min-height: 220px;
    padding: 22px;
  }
}

/* Animated underline */
.underline-anim{
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.underline-anim::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,#6aa8ff,#c76bff);
  border-radius: 3px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .35s ease;
}
.underline-anim:hover::after,
.underline-anim:focus-visible::after{
  transform: translateX(-50%) scaleX(1);
}

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

/* Navbar underline animation */
.navbar .nav-link{
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.navbar .nav-link::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,#6aa8ff,#c76bff);
  border-radius: 3px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .35s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after,
.navbar .nav-link.active::after{
  transform: translateX(-50%) scaleX(1);
}
@media (prefers-reduced-motion: reduce){
  .navbar .nav-link::after{ transition: none; }
}

/* tighter heading line-height */
.lh-tight { line-height: 1.50; }

/* bring the animated underline closer */
.u-close::after{
  bottom: -10px;
  height: 3px;
  border-radius: 4px;
}

/* Banner with background.png */
.brand-banner{
  background: url("../images/background.png") center/cover no-repeat;
  position: relative;
}
.brand-banner::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(1200px 500px at 50% 55%, rgba(255,255,255,.35), rgba(255,255,255,.15) 45%, rgba(255,255,255,0) 70%),
              linear-gradient(to bottom, rgba(255,255,255,.15), rgba(255,255,255,.15));
  pointer-events:none;
}
.brand-banner__logo{
  width: clamp(110px, 16vw, 160px);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.08));
}
.brand-banner__title{
  color: #000d7a;
  font-weight: 700;
  line-height: 1.25;
  font-size: clamp(22px, 3vw, 34px);
}

/* spacing utilities for the banner only */
.py-lg-6{ padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
@media (max-width: 991.98px){
  .py-lg-6{ padding-top: 3rem !important; padding-bottom: 3rem !important; }
}


/* Login Page Specific */

.login-wrap{
  min-height:100vh;
  background:
    url("../images/login_background.png") center/cover no-repeat fixed,
    linear-gradient(135deg,#eef3ff 0%, #f6ecff 100%);
  position:relative;
  display:grid;
  place-items:center;
  padding:32px 16px;
}

.login-wrap::before{
  content:"";
  position:absolute; inset:0;
  background:rgba(255,255,255,.35);
  backdrop-filter:blur(2px);
}

/* Card */
.login-card{
  position:relative; z-index:1; width:min(980px,100%);
  background:rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.06);
  border-radius:20px;
  box-shadow:0 16px 40px rgba(23,27,55,.15);
  overflow:hidden;
}

/* Left panel */
.login-left{
  background:linear-gradient(135deg,#eef3ff 0%, #f6ecff 100%);
  display:grid; place-items:center;
  padding:28px; text-align:center;
}

/* BRAND — centered at the top */
.login-left .brand{
  position:absolute; top:18px; left:50%;
  transform:translateX(-50%);
  display:flex; align-items:center; justify-content:center;
  gap:10px; width:max-content; text-align:center;
}
.login-left .brand img{ height:42px; width:auto; }
.login-left .brand span{ font-weight:700; color:#2b3b67; }

/* Right panel (form) */
.login-form{ padding:34px; }
.login-title{ color:#2b3b67; font-weight:700; margin-bottom:10px; }
.muted{ color:#778; font-size:.92rem; }

/* Inputs */
.form-control{
  border-radius:12px; padding:.9rem .95rem;
  border:1.5px solid rgba(0,0,0,.12);
}
.form-control:focus{
  border-color:#6a8bff;
  box-shadow:0 0 0 .2rem rgba(106,139,255,.15);
}

/* Put eye button INSIDE the input */
.position-relative > .form-control{
  padding-right: 2.8rem; /* room for eye button */
}
.toggle-eye{
  position:absolute;
  top:50%; right:12px; transform:translateY(-50%);
  width:34px; height:34px;
  display:grid; place-items:center;
  border:0; background:transparent; color:#6b7392;
  border-radius:8px; cursor:pointer;
}
.toggle-eye:hover{ color:#38405f; }
.toggle-eye:focus-visible{
  outline:none; box-shadow:0 0 0 3px rgba(106,139,255,.25);
}
/* icon swap */
.icon-eye-off{ display:none; }
.toggle-eye.active .icon-eye{ display:none; }
.toggle-eye.active .icon-eye-off{ display:block; }

/* Buttons */
.btn-gradient{
  color:#fff; border:0; border-radius:999px;
  background:linear-gradient(180deg,#6fb1ff,#7dd3a7);
  box-shadow:0 10px 20px rgba(109,164,255,.25), inset 0 3px 8px rgba(255,255,255,.35);
}
.btn-gradient:hover{ color:#fff; opacity:.95; }

/* Left-side demo button (gradient) */
.btn-ghost{
  display:inline-block; border:0; border-radius:999px;
  padding:.65rem 1.15rem; font-weight:700; color:#fff; text-decoration:none;
  background:linear-gradient(90deg,#6aa8ff,#c76bff);
  box-shadow:0 10px 20px rgba(109,164,255,.25), inset 0 3px 8px rgba(255,255,255,.25);
  transition:transform .15s ease, opacity .2s ease, box-shadow .2s ease;
}
.btn-ghost:hover{
  transform:translateY(-1px); opacity:.97;
  box-shadow:0 14px 26px rgba(109,164,255,.35), inset 0 3px 8px rgba(255,255,255,.3);
}

/* Responsive */
@media (max-width: 991.98px){
  .login-left{ display:none; }
  .login-form{ padding:28px; }
}


/* Bottom-center Home button */
/* Bottom-center Home button (raised) */
.btn-home{
  position: absolute;          /* anchor inside .login-wrap (which is position:relative) */
  left: 50%;
  bottom: clamp(120px, 12vh, 180px); /* raise it from the bottom */
  transform: translateX(-50%);
  z-index: 5;                  /* above .login-wrap::before overlay and background */
  padding: .65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg,#6aa8ff,#c76bff);
  box-shadow: 0 10px 20px rgba(109,164,255,.25), inset 0 3px 8px rgba(255,255,255,.25);
  transition: transform .15s ease, opacity .2s ease, box-shadow .2s ease;
}

.btn-home:hover{
  opacity: .97;
  transform: translateX(-50%) translateY(-1px);
  color: #fff;
  box-shadow: 0 14px 26px rgba(109,164,255,.35), inset 0 3px 8px rgba(255,255,255,.3);
}

/* Tweak position on narrow screens */
@media (max-width: 767.98px){
  .btn-home{
    bottom: clamp(60px, 10vh, 100px);
    padding: .55rem 1rem;
  }
}

