:root {
   --bg: #081320;
   --bg-soft: #10233c;
   --surface: rgba(255, 255, 255, 0.08);
   --surface-strong: #ffffff;
   --text: #f4f7fb;
   --muted: #55657b;
   --ink: #10233c;
   --line: rgba(255, 255, 255, 0.12);
   --accent: #ff8f3d;
   --accent-deep: #ff6a00;
   --teal: #34d2c5;
   --lime: #d1ff5d;
   --shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
   --radius-xl: 28px;
   --radius-lg: 20px;
   --radius-md: 14px;
}

body {
   font-family: "Manrope", sans-serif;
   background:
      radial-gradient(circle at top left, rgba(52, 210, 197, 0.15), transparent 30%),
      radial-gradient(circle at top right, rgba(255, 143, 61, 0.18), transparent 22%),
      linear-gradient(180deg, #07111d 0%, #0e2033 36%, #eef4fb 36%, #eef4fb 100%);
   color: #697586;
}

p,
label,
small,
span,
li,
input,
textarea,
select {
   color: #112238;
}

h1,
h2,
h3,
h4,
h5,
.brand-mark strong,
.page-title {
   font-family: "Space Grotesk", sans-serif;
}

a {
   text-decoration: none;
   transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.public-body .page-shell {
   min-height: 100vh;
}

.site-nav-wrap {
   position: sticky;
   top: 0;
   z-index: 20;
   backdrop-filter: blur(20px);
}

.site-nav {
   background: rgba(57, 93, 136, 0.86);
   border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark {
   display: inline-flex;
   align-items: center;
   gap: 0.85rem;
   color: #fff;
}

.brand-mark small {
   display: block;
   color: var(--muted);
   font-size: 0.78rem;
}

.brand-mark__icon {
   width: 46px;
   height: 46px;
   border-radius: 16px;
   display: grid;
   place-items: center;
   background: linear-gradient(145deg, var(--accent), var(--teal));
   color: #07111d;
   font-weight: 800;
}

.nav-link {
   color: rgba(255, 255, 255, 0.86);
   font-weight: 600;
}

.nav-link:hover,
.student-menu a:hover {
   color: #fff;
}

.nav-link {
   position: relative;
}

.nav-link::after {
   content: "";
   position: absolute;
   left: 0.6rem;
   right: 0.6rem;
   bottom: 0.3rem;
   height: 2px;
   border-radius: 999px;
   background: linear-gradient(90deg, var(--accent), var(--teal));
   transform: scaleX(0);
   transform-origin: center;
   transition: transform 0.25s ease;
}

.nav-link:hover::after {
   transform: scaleX(1);
}

.btn-accent {
   background: linear-gradient(135deg, var(--accent), var(--accent-deep));
   color: #fff;
   border: none;
   border-radius: 999px;
   padding: 0.85rem 1.35rem;
   font-weight: 800;
   box-shadow: 0 14px 30px rgba(255, 106, 0, 0.28);
}

.btn-accent:hover {
   color: #fff;
   transform: translateY(-2px) scale(1.01);
}

.soft-alert {
   border: 0;
   border-radius: 18px;
   box-shadow: var(--shadow);
}

.hero-section,
.section-shell {
   padding: 4rem 0;
}

.home-hero-section {
   position: relative;
   background:
      linear-gradient(135deg, rgba(6, 17, 27, 0.58), rgba(16, 35, 60, 0.52)),
      url("https://images.pexels.com/photos/574071/pexels-photo-574071.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=2400") center center / cover fixed no-repeat;
   background-color: #07111d;
   padding-bottom: 5rem;
}

.home-info-section {
   margin-top: 0;
   padding-top: 2rem;
   position: relative;
   z-index: 1;
}

.hero-card,
.content-card,
.glass-card,
.student-panel,
.course-card,
.metric-card,
.list-card {
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow);
}

.hero-card {
   background: linear-gradient(135deg, rgba(8, 19, 32, 0.96), rgba(12, 35, 58, 0.88));
   color: var(--text);
   overflow: hidden;
   padding: 3rem;
   position: relative;
}

.home-hero-section .hero-card {
   background: linear-gradient(135deg, rgba(8, 19, 32, 0.84), rgba(12, 35, 58, 0.78));
   border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card p,
.hero-card label,
.hero-card small,
.hero-card span,
.hero-card li,
.site-nav p,
.site-nav label,
.site-nav small,
.site-nav span,
.site-nav li,
.site-footer p,
.site-footer label,
.site-footer small,
.site-footer span,
.site-footer li,
.student-sidebar p,
.student-sidebar label,
.student-sidebar small,
.student-sidebar span,
.student-sidebar li,
.dashboard-hero p,
.dashboard-hero label,
.dashboard-hero small,
.dashboard-hero span,
.dashboard-hero li {
   color: inherit;
}

.hero-card::after {
   content: "";
   position: absolute;
   inset: auto -10% -35% auto;
   width: 280px;
   height: 280px;
   background: radial-gradient(circle, rgba(255, 143, 61, 0.35), transparent 68%);
}

.eyebrow {
   color: var(--lime);
   font-size: 0.82rem;
   font-weight: 800;
   letter-spacing: 0.12em;
   text-transform: uppercase;
}

.lead-copy,
.muted-copy {
   color: var(--muted);
}

.stat-strip {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
   gap: 1rem;
   margin-top: 2rem;
}

.stat-box {
   background: rgba(255, 255, 255, 0.08);
   border: 1px solid var(--line);
   border-radius: 20px;
   padding: 1.1rem 1rem;
}

.stat-box strong {
   display: block;
   font-size: 1.8rem;
   color: #fff;
}

.content-card,
.student-panel,
.course-card,
.metric-card,
.list-card,
.auth-card {
   background: #fff;
   padding: 1.75rem;
   border: 1px solid rgba(10, 22, 36, 0.06);
}

.section-title {
   margin-bottom: 1.25rem;
}

.hero-chip-row {
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
   margin-top: 1.5rem;
}

.course-card img,
.gallery-frame img,
.avatar-orb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.course-card .thumb,
.gallery-frame {
   border-radius: 22px;
   overflow: hidden;
   background: linear-gradient(135deg, #d8e6f5, #f6fbff);
}

.course-card .thumb {
   height: 200px;
   margin-bottom: 1rem;
}

.course-card {
   position: relative;
   overflow: hidden;
   transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.course-card::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(140deg, rgba(52, 210, 197, 0.08), rgba(255, 143, 61, 0.12));
   opacity: 0;
   transition: opacity 0.28s ease;
   pointer-events: none;
}

.course-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 30px 60px rgba(15, 35, 60, 0.16);
   border-color: rgba(52, 210, 197, 0.22);
}

.course-card:hover::before {
   opacity: 1;
}

.course-card__meta {
   display: flex;
   flex-wrap: wrap;
   gap: 0.85rem;
   margin: 0.25rem 0 1rem;
   font-size: 0.9rem;
}

.course-card__meta span {
   display: inline-flex;
   align-items: center;
   gap: 0.4rem;
   color: #5b6b80;
   font-weight: 700;
}

.pill,
.pill-muted {
   display: inline-flex;
   align-items: center;
   gap: 0.35rem;
   border-radius: 999px;
   padding: 0.45rem 0.8rem;
   font-size: 0.85rem;
   font-weight: 700;
}

.pill {
   background: rgba(52, 210, 197, 0.12);
   color: #0b7f76;
}

.pill-muted {
   background: rgba(16, 35, 60, 0.08);
   color: #345;
}

.site-footer {
   background: #081320;
   color: #c8d6e5;
   padding: 3rem 0;
   margin-top: 4rem;
}

.site-footer h3,
.site-footer h6 {
   color: #fff;
}

.site-footer a {
   display: block;
   color: #c8d6e5;
   margin-bottom: 0.55rem;
}

.site-footer a:hover {
   color: #ffffff;
   transform: translateX(4px);
}

.footer-signature {
   display: inline-flex;
   margin-top: 1rem;
   padding: 0.7rem 1rem;
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.08);
   color: #fff;
   font-weight: 800;
   letter-spacing: 0.05em;
}

.auth-shell {
   padding: 5rem 0;
}

.auth-card {
   max-width: 560px;
   margin: 0 auto;
   color: #112238;
}

.auth-card h2,
.auth-card h3,
.auth-card p,
.auth-card a,
.auth-card label {
   color: #112238;
}

.form-control,
.form-select {
   border-radius: 16px;
   min-height: 52px;
   border: 1px solid rgba(16, 35, 60, 0.12);
   box-shadow: none;
   color: #112238;
   background: #ffffff;
}

.form-control::placeholder,
.form-select {
   color: #55657b;
}

textarea.form-control {
   min-height: 140px;
}

.student-body {
   background: linear-gradient(135deg, #06111b, #10233c 34%, #f2f6fb 34%, #f2f6fb 100%);
}

.student-shell {
   display: grid;
   grid-template-columns: 310px 1fr;
   min-height: 100vh;
}

.student-sidebar {
   background: linear-gradient(180deg, #07111d, #0f2640);
   color: #fff;
   padding: 1.15rem 1.15rem 1.6rem;
   position: sticky;
   top: 0;
   height: 100vh;
   overflow-y: auto;
   overflow-x: hidden;
   scrollbar-width: thin;
}

.brand-mark--student {
   margin-bottom: 0.9rem;
}

.student-profile-card {
   padding: 1.5rem;
   border-radius: 28px;
   background: rgba(255, 255, 255, 0.06);
   border: 1px solid rgba(255, 255, 255, 0.09);
   margin-bottom: 1rem;
   text-align: center;
}

.student-profile-card h5,
.student-profile-card p {
   color: #f5f8fc;
}

.student-profile-card .pill-muted {
   background: rgba(255, 255, 255, 0.12);
   color: #dce8f6;
}

.avatar-orb {
   width: 92px;
   height: 92px;
   margin: 0 auto 1rem;
   border-radius: 28px;
   overflow: hidden;
   display: grid;
   place-items: center;
   background: linear-gradient(135deg, var(--accent), var(--teal));
   color: #fff;
   font-size: 2rem;
   font-weight: 800;
   flex-shrink: 0;
}

.student-menu {
   display: grid;
   gap: 0.4rem;
   margin-top: 0.35rem;
}

.student-menu a {
   color: rgba(255, 255, 255, 0.84);
   padding: 0.95rem 1rem;
   border-radius: 18px;
   font-weight: 700;
}

.student-menu a i {
   width: 20px;
   margin-right: 0.65rem;
}

.student-menu a:hover {
   background: rgba(255, 255, 255, 0.08);
}

.student-sidebar::-webkit-scrollbar {
   width: 8px;
}

.student-sidebar::-webkit-scrollbar-thumb {
   background: rgba(255, 255, 255, 0.2);
   border-radius: 999px;
}

.student-main {
   padding: 2rem;
}

.student-topbar {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 1rem;
   margin-bottom: 1.5rem;
}

.student-topbar .page-title {
   color: #b0122b !important;
   font-size: 2.35rem;
   line-height: 1.1;
}

.student-topbar .eyebrow {
   color: #d62839 !important;
}

.dashboard-hero {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 1.5rem;
   padding: 2rem 2.1rem;
   border-radius: 30px;
   background: linear-gradient(135deg, #0f2843, #173f69 62%, #1f66b1);
   color: #ffffff;
   box-shadow: var(--shadow);
}

.dashboard-hero__content h2 {
   margin: 0;
   font-family: "Space Grotesk", sans-serif;
   font-size: clamp(2rem, 4vw, 3.2rem);
   line-height: 1.05;
   color: #ffffff !important;
}

.dashboard-hero__copy {
   margin: 0.85rem 0 0;
   max-width: 720px;
   color: #eef6ff !important;
   font-size: 1.02rem;
}

.dashboard-hero .eyebrow {
   color: #fff3a3 !important;
}

.dashboard-hero__badge {
   min-width: 170px;
   padding: 1.2rem 1.3rem;
   border-radius: 24px;
   background: rgba(255, 255, 255, 0.12);
   border: 1px solid rgba(255, 255, 255, 0.18);
   text-align: center;
}

.dashboard-hero__badge span {
   display: block;
   color: #ffffff !important;
   font-size: 2.2rem;
   font-weight: 800;
}

.dashboard-hero__badge small {
   color: #eef6ff !important;
   font-size: 0.9rem;
}

.page-title {
   margin: 0;
}

.metric-grid,
.card-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 1rem;
}

.metric-card {
   background: linear-gradient(160deg, #ffffff, #edf5ff);
   transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.metric-card strong {
   font-size: 2rem;
   display: block;
}

.metric-card--image {
   overflow: hidden;
}

.metric-card__visual {
   height: 120px;
   margin: -1.75rem -1.75rem 1rem;
   overflow: hidden;
   border-radius: 20px 20px 0 0;
}

.metric-card__visual img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.3s ease;
}

.metric-card--image:hover .metric-card__visual img {
   transform: scale(1.06);
}

.metric-card:hover,
.feature-panel:hover,
.mini-feature-card:hover,
.showcase-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 30px 55px rgba(15, 35, 60, 0.13);
}

.spotlight-card {
   position: relative;
   overflow: hidden;
}

.spotlight-card::after {
   content: "";
   position: absolute;
   inset: auto -40px -40px auto;
   width: 180px;
   height: 180px;
   border-radius: 999px;
   background: radial-gradient(circle, rgba(52, 210, 197, 0.18), transparent 70%);
}

.showcase-card {
   display: grid;
   grid-template-columns: 1.1fr 1fr;
   gap: 0;
   min-height: 100%;
   overflow: hidden;
   background: #fff;
   border: 1px solid rgba(10, 22, 36, 0.06);
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow);
   transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.showcase-card__media {
   min-height: 260px;
   overflow: hidden;
}

.showcase-card__media img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.showcase-card__media--wide {
   min-height: 320px;
}

.showcase-card__content {
   padding: 2rem;
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.showcase-stack,
.about-grid {
   display: grid;
   gap: 1rem;
   height: 100%;
}

.mini-feature-card {
   display: grid;
   grid-template-columns: 120px 1fr;
   gap: 1rem;
   align-items: center;
   padding: 1rem;
   background: #fff;
   border-radius: 24px;
   border: 1px solid rgba(10, 22, 36, 0.06);
   box-shadow: var(--shadow);
   transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.mini-feature-card img {
   width: 100%;
   height: 96px;
   object-fit: cover;
   border-radius: 18px;
}

.mini-feature-card--stack {
   grid-template-columns: 1fr;
}

.mini-feature-card--stack img {
   height: 190px;
}

.feature-panel {
   height: 100%;
   padding: 1.6rem;
   background: linear-gradient(180deg, #ffffff, #eef5ff);
   border-radius: 26px;
   border: 1px solid rgba(10, 22, 36, 0.06);
   box-shadow: var(--shadow);
   transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.feature-panel__icon {
   width: 56px;
   height: 56px;
   border-radius: 18px;
   display: inline-grid;
   place-items: center;
   margin-bottom: 1rem;
   background: linear-gradient(135deg, var(--accent), var(--teal));
   color: #fff;
   font-size: 1.2rem;
}

.streak-panel {
   background:
      radial-gradient(circle at top right, rgba(255, 143, 61, 0.18), transparent 34%),
      linear-gradient(160deg, #ffffff, #fff3e8);
}

.streak-count {
   font-size: clamp(2rem, 3vw, 3rem);
   line-height: 1;
}

.streak-pulse {
   width: 84px;
   height: 84px;
   border-radius: 26px;
   display: grid;
   place-items: center;
   background: linear-gradient(135deg, #ffb26b, #ff6a00);
   box-shadow: 0 18px 36px rgba(255, 106, 0, 0.24);
}

.streak-pulse span {
   width: 28px;
   height: 28px;
   border-radius: 999px;
   background: #fff8ef;
   box-shadow: 0 0 0 12px rgba(255, 248, 239, 0.24);
}

.recommendation-panel {
   position: relative;
   overflow: hidden;
}

.recommendation-panel::after {
   content: "";
   position: absolute;
   inset: auto -30px -40px auto;
   width: 180px;
   height: 180px;
   border-radius: 999px;
   opacity: 0.2;
}

.recommendation-panel--urgent {
   background: linear-gradient(160deg, #fff6f3, #fff0eb);
}

.recommendation-panel--urgent::after {
   background: #ff6a00;
}

.recommendation-panel--focus {
   background: linear-gradient(160deg, #f4fbff, #ebf7ff);
}

.recommendation-panel--focus::after {
   background: #1f66b1;
}

.recommendation-panel--progress,
.recommendation-panel--explore {
   background: linear-gradient(160deg, #f3fff9, #e6fff5);
}

.recommendation-panel--progress::after,
.recommendation-panel--explore::after {
   background: #34d2c5;
}

.list-card+.list-card {
   margin-top: 1rem;
}

.video-frame {
   border-radius: 20px;
   overflow: hidden;
   background: #081320;
   min-height: 220px;
}

.video-frame iframe,
.video-frame video {
   width: 100%;
   height: 100%;
   min-height: 220px;
   border: 0;
}

@media (max-width: 991px) {
   .student-shell {
      grid-template-columns: 1fr;
   }

   .student-sidebar {
      position: relative;
      height: auto;
   }

   .student-topbar {
      flex-direction: column;
      align-items: flex-start;
   }

   .dashboard-hero {
      flex-direction: column;
      align-items: flex-start;
      padding: 1.5rem;
   }

   .hero-card {
      padding: 2rem;
   }

   .home-hero-section {
      background-attachment: scroll;
   }

   .showcase-card {
      grid-template-columns: 1fr;
   }

   .mini-feature-card {
      grid-template-columns: 1fr;
   }

   .mini-feature-card img {
      height: 180px;
   }
}
