:root {
  --navy-900: #041f3a;
  --navy-800: #0a2f57;
  --teal-600: #0e7c8f;
  --teal-500: #17a2b8;
  --sea-100: #e9f8fc;
  --white: #ffffff;
  --ink: #0f1d2f;
  --muted: #516174;
  --shadow: 0 14px 30px rgba(4, 31, 58, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

section[id],
h2[id],
h3[id] {
  scroll-margin-top: 92px;
}

main > section {
  transition: opacity 2200ms cubic-bezier(0.19, 1, 0.22, 1), filter 2200ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, filter;
}

body.section-focus-mode main > section:not(.section-focus) {
  opacity: 0.42;
  filter: blur(1.2px);
}

main > section.section-focus {
  opacity: 1 !important;
  filter: none !important;
  z-index: 2;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  background: linear-gradient(160deg, #fff4f8 0%, #ffe9f2 45%, #ffdfe9 100%);
  overflow-x: hidden;
  position: relative;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
  opacity: 0.4;
}

.orb-one {
  width: 260px;
  height: 260px;
  background: #75deff;
  top: -40px;
  left: -70px;
}

.orb-two {
  width: 320px;
  height: 320px;
  background: #8ff0cb;
  right: -80px;
  bottom: 10vh;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(10, 47, 87, 0.08);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-900);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  mix-blend-mode: darken;
  filter: contrast(1) brightness(1.08) saturate(1.1) hue-rotate(6deg);
}

.brand strong {
  display: block;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1rem;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a {
  color: var(--navy-900);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--teal-600);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
}

.hero {
  padding: 88px 0 70px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(214, 240, 245, 0.78) 0%, rgba(124, 191, 206, 0.44) 56%, rgba(27, 111, 131, 0.34) 100%);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(1.18) contrast(1.1) brightness(1.05);
  pointer-events: none;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% 24% -20%;
  background:
    radial-gradient(42% 50% at 18% 22%, rgba(43, 165, 181, 0.28), transparent 62%),
    radial-gradient(40% 45% at 84% 14%, rgba(5, 76, 102, 0.26), transparent 68%),
    radial-gradient(38% 42% at 50% 82%, rgba(17, 110, 133, 0.24), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  z-index: -1;
  animation: oceanGlow 10s ease-in-out infinite alternate;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.hero-content {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(10, 47, 87, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(2px);
}

.kicker {
  margin: 0 0 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0c4c72;
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--navy-900);
}

h1 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.06;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.12rem;
  font-weight: 600;
  color: #0b4f72;
  margin-top: 0;
}

.hero-content p {
  font-size: 1.02rem;
  color: #17314a;
  max-width: 56ch;
}

.hero-cta {
  margin: 24px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  padding: 10px 18px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 220ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  color: var(--white);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: var(--teal-600);
  color: var(--teal-600);
}

.btn.ghost:hover {
  background: rgba(14, 124, 143, 0.08);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 12px;
}

.quick-stats article {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.quick-stats strong {
  display: block;
  color: var(--teal-600);
  font-size: 1.28rem;
}

.quick-stats span {
  font-size: 0.84rem;
  color: var(--muted);
}

.hero-media {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.floating-logo {
  width: min(320px, 82vw);
  border-radius: 50%;
  clip-path: circle(49% at 50% 50%);
  background: transparent;
  opacity: 0.86;
  mix-blend-mode: multiply;
  filter: contrast(1.22) brightness(0.9) saturate(2.35) hue-rotate(18deg);
  box-shadow: 0 0 0 3px rgba(12, 76, 138, 0.55), 0 0 18px rgba(12, 76, 138, 0.22);
  animation: drift 4s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.compass-card {
  width: min(360px, 100%);
  background: linear-gradient(160deg, #0a2f57, #105f7b);
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.compass-card h3 {
  color: var(--white);
}

.compass {
  margin-top: 12px;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.shaded {
  background: linear-gradient(180deg, rgba(10, 47, 87, 0.04), rgba(23, 162, 184, 0.03));
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dept-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.panel,
.card,
.dept-card,
.resource-card,
.blog-card,
.login-card,
.dashboard-info {
  background: var(--white);
  border: 1px solid rgba(10, 47, 87, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel ul,
.dashboard-info ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.panel li,
.dashboard-info li {
  margin: 9px 0;
}

.cards-spaced {
  margin-top: 16px;
}

.card p,
.dept-card p,
.resource-card p,
.blog-card p,
.panel p,
.dashboard-info p {
  color: var(--muted);
}

.dept-card {
  min-height: 100%;
  padding: 22px 20px;
}

.dept-card h3 {
  margin-bottom: 10px;
}

.dept-card .icon-tag {
  margin-bottom: 10px;
}

.icon-tag {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.roadmaps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.ladder {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(10, 47, 87, 0.1);
  padding: 18px;
  box-shadow: var(--shadow);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.steps span {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 124, 143, 0.12);
  color: var(--navy-900);
  font-weight: 600;
}

.steps span:not(:last-child)::after {
  content: "->";
  margin-left: 8px;
  color: var(--teal-600);
}

.panel.full {
  margin-top: 6px;
}

.route-links-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.route-link-card {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #c9d4df;
  background: #ffffff;
  color: #1f2f3f;
  font-weight: 700;
  font: inherit;
  font-size: 1rem;
  text-align: center;
  padding: 8px 10px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.route-link-card:hover {
  background: #f7f9fc;
  border-color: #9fb0c2;
}

.route-tab.active {
  background: #eaf0f7;
  border-color: #7f94a9;
  color: #10273d;
}

.route-sections-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.route-sections-grid-spaced {
  margin-top: 20px;
}

.route-section {
  border: 1px solid rgba(10, 47, 87, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: #f8fcff;
}

.route-section h4 {
  margin: 0 0 4px;
  color: var(--navy-900);
}

.route-section p {
  margin: 0;
  color: var(--muted);
}

.route-panel[hidden] {
  display: none !important;
}

.chalk-route-card {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid #d5dde6;
  padding: 16px;
}

.chalk-route-title {
  color: #10273d;
  margin-bottom: 10px;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
}

.chalkboard-infographic {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #d0d8e2;
  padding: 16px 12px;
  background: #fdfefe;
}

.chalkboard-top {
  display: none;
}

.chalk-doodle {
  display: none;
}

.chalk-heading,
.chalk-step-box h6,
.chalk-step-box p,
.chalk-final-box h6,
.chalk-final-box p {
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color: #1f2f3f;
  text-shadow: none;
}

.chalk-heading {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: 0;
}

.chalk-step-box,
.chalk-final-box {
  border: 1px solid #c9d4df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.chalk-step-box h6,
.chalk-final-box h6 {
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  font-weight: 700;
}

.chalk-step-box p,
.chalk-final-box p {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.chalk-flow-arrow {
  display: block;
  text-align: center;
  color: #60778f;
  font-size: 1.1rem;
  margin: 6px 0;
  line-height: 1;
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

.chalk-final-box {
  border-width: 2px;
  border-color: #7f94a9;
  background: #f6f9fc;
}

.captain-hat-doodle {
  margin: 0 0 6px;
  font-size: 1.4rem !important;
}

.engine-cap-doodle {
  margin: 0 0 6px;
  font-size: 1.35rem !important;
}

.resource-card a {
  color: var(--teal-600);
  text-decoration: none;
  font-weight: 600;
}

.text-link {
  color: var(--teal-600);
  text-decoration: none;
  font-weight: 700;
}

.highlight-title {
  display: inline-block;
  background: #fff1a8;
  color: #2a2a2a;
  padding: 4px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.highlight-title a {
  color: #0a2f57;
  text-decoration: none;
  font-weight: 700;
}

.mentor-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.linkedin-icon-link {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #0a66c2;
  color: #ffffff;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: linkedinTwinkle 1.8s ease-in-out infinite;
}

.linkedin-icon-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(10, 102, 194, 0.24);
}

.linkedin-icon-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@keyframes linkedinTwinkle {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(10, 102, 194, 0);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 14px rgba(10, 102, 194, 0.45);
    filter: brightness(1.15);
  }
}

.whatsapp-connect {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: start;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 87, 0.12);
  text-decoration: none;
  color: var(--navy-900);
  background: #e9fff5;
  font-weight: 700;
  width: fit-content;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(4, 31, 58, 0.14);
}

.whatsapp-btn {
  background: #e9fff5;
}

.social-btn img,
.social-btn svg {
  width: 28px;
  height: 28px;
}

.social-btn img {
  object-fit: cover;
  border-radius: 6px;
}

.social-btn svg {
  fill: currentColor;
}

.instagram-btn {
  background: #fff1f6;
  color: #c13584;
}

.facebook-btn {
  background: #eef4ff;
  color: #1877f2;
}

.youtube-btn {
  background: #ffe9e9;
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.24);
}

.contact-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 10px;
}

.contact-mentor {
  border: 1px solid rgba(10, 47, 87, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: #f8fcff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.contact-mentor h4 {
  margin: 0 0 4px;
  color: var(--navy-900);
}

.contact-mentor p {
  margin: 0;
  color: var(--muted);
}

.contact-phone {
  margin: 2px 0 0;
}

.contact-actions {
  border: 1px solid rgba(10, 47, 87, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.contact-actions h4 {
  margin: 0 0 10px;
  color: var(--navy-900);
  letter-spacing: 0.01em;
}

.contact-actions .social-links {
  gap: 8px;
}

.contact-actions .social-btn {
  min-height: 44px;
  width: 100%;
  justify-content: flex-start;
}

.qr-card {
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(10, 47, 87, 0.12);
  background: #f8feff;
  width: fit-content;
}

.qr-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.qr-card figcaption {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

#dashboard .dashboard-info,
#contact .panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  border: 1px solid rgba(10, 47, 87, 0.14);
}

.auth-shell {
  align-content: start;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
  border: 1px solid rgba(10, 47, 87, 0.14);
}

.access-hub {
  align-content: start;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
  border: 1px solid rgba(10, 47, 87, 0.14);
}

.access-hub-inline {
  margin-bottom: 14px;
  border-radius: 12px;
  padding: 14px;
}


.access-hub h3 {
  margin: 0 0 4px;
  color: var(--navy-900);
}

.access-links {
  margin: 10px 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-head h3 {
  margin: 0 0 4px;
  color: var(--navy-900);
}

.auth-head p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  background: #edf6fb;
  border-radius: 12px;
}

.auth-tab {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(10, 47, 87, 0.2);
  background: #ffffff;
  color: var(--navy-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(5, 76, 102, 0.22);
}

.auth-tab:hover {
  transform: translateY(-1px);
}

.auth-pane {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 87, 0.1);
  background: #fcfeff;
}

.auth-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-top: 2px;
}

.remember-row input {
  min-height: auto;
}

#otpLoginWrap {
  display: grid;
  gap: 8px;
}

.btn.small {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.auth-feedback {
  min-height: 24px;
  margin: 8px 0 0;
  color: #2f4f67;
  font-weight: 600;
  background: #f4fbff;
  border: 1px solid rgba(10, 47, 87, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
}

.auth-feedback.error {
  color: #9d1c1c;
  background: #fff3f3;
  border-color: rgba(178, 31, 31, 0.24);
}

.auth-feedback.success {
  color: #0f7a52;
  background: #effbf5;
  border-color: rgba(15, 122, 82, 0.24);
}

#logoutBtn {
  justify-self: start;
}

.admin-panel {
  margin-top: 18px;
  border: 1px solid rgba(10, 47, 87, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f9fdff 100%);
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

.admin-form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 87, 0.1);
  background: #fcfeff;
}

.admin-list-wrap h4 {
  margin: 0 0 10px;
  color: var(--navy-900);
}

.admin-list-wrap {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 87, 0.1);
  background: #fcfeff;
}

.admin-student-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.admin-student-list li {
  border: 1px solid rgba(10, 47, 87, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: #f8fcff;
  color: var(--muted);
}

.admin-student-list strong {
  color: var(--navy-900);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-head h3 {
  margin: 0;
}

.panel-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(10, 47, 87, 0.16);
  background: #f4fbff;
  color: var(--navy-900);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-item {
  background: #f9fcff;
  border: 1px solid rgba(10, 47, 87, 0.12);
  border-radius: 10px;
  padding: 10px;
}

.status-item h4 {
  margin: 0 0 4px;
  color: var(--navy-900);
  font-size: 0.86rem;
}

.status-item p {
  margin: 0;
  font-size: 0.88rem;
}

.course-showcase {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-tile {
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 87, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 12px;
}

.course-tile h4 {
  margin: 0 0 5px;
  color: var(--navy-900);
  font-size: 0.9rem;
}

.course-tile p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.tile-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(23, 162, 184, 0.14);
  color: var(--navy-800);
}

.mentor-intro {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: start;
  background: #0d0d0d;
  color: #ffffff;
  padding: 22px;
  border-radius: 18px;
  border: 2px solid #00ff41;
  box-shadow: 0 0 14px rgba(0, 255, 65, 0.35);
  font-family: "Courier New", Courier, monospace;
}

.mentor-photo-wrap {
  margin: 0;
}

.mentor-photo {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(0, 229, 255, 0.55);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.mentor-content {
  min-width: 0;
}

.mentor-intro h3 {
  margin: 0 0 6px;
  color: #00ff41;
  text-transform: uppercase;
}

.mentor-subtitle {
  margin: 0 0 12px;
  color: #d9fbff;
  font-weight: 800;
  font-size: 1rem;
}

.mentor-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mentor-tags span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mentor-tags span:first-child {
  background: #00ff41;
  color: #000000;
}

.mentor-tags span:last-child {
  background: #00e5ff;
  color: #000000;
}

.mentor-copy {
  margin: 0 0 10px;
  color: #f4f4f4;
  line-height: 1.5;
  font-size: 0.98rem;
  font-weight: 600;
}

.mentor-copy strong {
  color: #ffffff;
}

.mentor-quote {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #333333;
  color: #00ff41;
  font-style: italic;
}

.affiliation-strip {
  margin-top: 30px;
  border: 1px solid rgba(10, 47, 87, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.affiliation-strip h4 {
  margin: 0 0 10px;
  color: var(--navy-900);
}

.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.affiliation-item {
  text-decoration: none;
  border: 1px solid rgba(10, 47, 87, 0.12);
  background: #ffffff;
  border-radius: 10px;
  min-height: 84px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 8px 6px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.affiliation-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(4, 31, 58, 0.12);
}

.affiliation-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
}

.affiliation-fallback {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e9f3ff;
  border: 1px solid rgba(10, 47, 87, 0.2);
  color: var(--navy-900);
  font-size: 0.7rem;
  font-weight: 800;
}

.affiliation-item span {
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.guide-pointer {
  position: fixed;
  width: 0;
  height: 0;
  left: 10px;
  top: 10px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 22px solid #ff4d4d;
  box-shadow: 0 0 0 rgba(255, 122, 0, 0.5);
  opacity: 0;
  transform: translateX(0) scale(0.92);
  pointer-events: none;
  z-index: 200;
}

.guide-pointer::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -16px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 18px solid #ffffff;
  transform: translateX(-2px);
}

.guide-pointer::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 9px;
  width: 14px;
  height: 3px;
  background: #ffd6d6;
  border-radius: 999px;
  transform: rotate(38deg);
}

.guide-pointer.active {
  opacity: 1;
  animation: guidePointerMove 0.9s ease-in-out infinite;
}

.login-card {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy-900);
}

input {
  border-radius: 10px;
  border: 1px solid rgba(10, 47, 87, 0.22);
  min-height: 42px;
  padding: 0 12px;
  font: inherit;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(4, 31, 58, 0.05);
}

select {
  border-radius: 10px;
  border: 1px solid rgba(10, 47, 87, 0.22);
  min-height: 42px;
  padding: 0 12px;
  font: inherit;
  background: var(--white);
  box-shadow: inset 0 1px 2px rgba(4, 31, 58, 0.05);
}

input:focus {
  outline: 2px solid rgba(23, 162, 184, 0.34);
  border-color: var(--teal-500);
}

select:focus {
  outline: 2px solid rgba(23, 162, 184, 0.34);
  border-color: var(--teal-500);
}

.chip {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 47, 87, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-800);
}

.muted {
  color: var(--muted);
}

.sea-wave-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 150px;
  pointer-events: none;
  filter: drop-shadow(0 -6px 12px rgba(13, 98, 132, 0.22));
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.ship-silhouette {
  position: absolute;
  left: -18%;
  bottom: 58px;
  width: 200px;
  height: 78px;
  z-index: 2;
  opacity: 0;
  animation: shipSailSeries 21s linear infinite;
}

.ship-container {
  width: 178px;
  height: 76px;
  bottom: 54px;
  animation-delay: 0s;
}

.ship-passenger {
  width: 210px;
  height: 82px;
  bottom: 64px;
  animation-delay: 7s;
}

.ship-tanker {
  width: 226px;
  height: 86px;
  bottom: 46px;
  animation-delay: 14s;
}

.ship-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 10px 24px rgba(3, 30, 55, 0.28);
  filter: saturate(1.04) contrast(1.06);
  animation: shipFloat 3.8s ease-in-out infinite;
}


.ship-silhouette::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 8px;
  width: 44px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(60% 120% at 50% 0%, rgba(198, 248, 255, 0.8), rgba(198, 248, 255, 0));
  animation: wakePulse 2.4s ease-in-out infinite;
}

.sea-wave {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 140px;
  background-repeat: repeat-x;
  background-size: 52% 100%;
  opacity: 0.65;
  will-change: transform, opacity;
}

.sea-foam {
  bottom: 2px;
  opacity: 0.7;
  height: 128px;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(48% 115% at 50% 0%, rgba(255, 255, 255, 0.6) 48%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(42% 100% at 20% 0%, rgba(198, 245, 255, 0.55) 46%, rgba(198, 245, 255, 0) 52%);
  animation: waveDriftC 9s linear infinite;
}

.wave-a {
  bottom: 0;
  height: 140px;
  background-image: radial-gradient(60% 155% at 50% 0%, rgba(16, 142, 166, 0.6) 50%, rgba(16, 142, 166, 0) 52%);
  animation: waveDriftA 11s linear infinite;
}

.wave-b {
  bottom: 16px;
  opacity: 0.54;
  height: 132px;
  background-image: radial-gradient(58% 144% at 50% 0%, rgba(7, 114, 137, 0.52) 50%, rgba(7, 114, 137, 0) 52%);
  animation: waveDriftB 15s linear infinite;
}

.wave-c {
  bottom: 34px;
  opacity: 0.4;
  height: 126px;
  background-image: radial-gradient(54% 132% at 50% 0%, rgba(6, 67, 91, 0.5) 50%, rgba(6, 67, 91, 0) 52%);
  animation: waveDriftA 20s linear infinite reverse;
}

.wave-d {
  bottom: 52px;
  opacity: 0.26;
  height: 114px;
  background-image: radial-gradient(52% 124% at 50% 0%, rgba(38, 173, 182, 0.4) 50%, rgba(38, 173, 182, 0) 52%);
  animation: waveDriftC 24s linear infinite reverse;
}

.wave-e {
  bottom: 68px;
  opacity: 0.22;
  height: 100px;
  background-image: radial-gradient(49% 112% at 50% 0%, rgba(2, 52, 74, 0.42) 49%, rgba(2, 52, 74, 0) 52%);
  animation: waveDriftB 29s linear infinite;
}

@keyframes waveDriftA {
  0% { transform: translateX(0); }
  100% { transform: translateX(24%); }
}

@keyframes guidePointerMove {
  0% {
    transform: translateX(0) scale(0.92);
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.45);
  }
  50% {
    transform: translateX(10px) scale(1);
    box-shadow: 0 0 0 14px rgba(255, 122, 0, 0.12);
  }
  100% {
    transform: translateX(0) scale(0.92);
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
  }
}

@keyframes waveDriftB {
  0% { transform: translateX(0); }
  100% { transform: translateX(-27%); }
}

@keyframes waveDriftC {
  0% { transform: translateX(0); }
  100% { transform: translateX(18%); }
}

@keyframes oceanGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -1.5%, 0) scale(1.06); }
}

@keyframes shipSailSeries {
  0% { transform: translateX(0) translateY(2px) rotate(0.3deg); opacity: 0; }
  8% { opacity: 0.95; }
  30% { opacity: 0.95; }
  40% { opacity: 0; }
  100% { transform: translateX(128vw) translateY(2px) rotate(0.4deg); opacity: 0; }
}

@keyframes shipFloat {
  0%, 100% { transform: translateY(0) rotate(0.3deg); }
  50% { transform: translateY(-5px) rotate(-0.6deg); }
}

@keyframes wakePulse {
  0%, 100% { transform: scaleX(1); opacity: 0.65; }
  50% { transform: scaleX(1.35); opacity: 0.95; }
}

.ship-panel {
  overflow: hidden;
}

.ship-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 87, 0.08);
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(4, 31, 58, 0.12);
}

.inner-hero {
  padding: 88px 0 30px;
}

.inner-hero h1 {
  margin-bottom: 8px;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--teal-600);
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.article-body {
  background: var(--white);
  border: 1px solid rgba(10, 47, 87, 0.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.article-body p,
.article-body li {
  color: var(--muted);
  line-height: 1.68;
}

.article-body ul {
  padding-left: 20px;
}

.aside-stack {
  display: grid;
  gap: 16px;
}

.quiz-form fieldset {
  margin: 0 0 14px;
  border: 1px solid rgba(10, 47, 87, 0.12);
  border-radius: 12px;
  padding: 12px;
}

.quiz-form legend {
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.quiz-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
  color: var(--muted);
}

.quiz-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(23, 162, 184, 0.08);
  color: var(--navy-900);
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  background: var(--white);
  border: 1px solid rgba(10, 47, 87, 0.08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  color: var(--teal-600);
}

.logout-btn {
  margin-top: 10px;
}

.site-footer {
  background: var(--navy-900);
  color: var(--white);
  padding: 22px 0;
  position: relative;
  overflow: hidden;
}

.hero-wave-video {
  opacity: 0.62;
  filter: saturate(1.02) contrast(1.02) brightness(0.94);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -20%;
  top: -38px;
  width: 140%;
  height: 70px;
  background: radial-gradient(58% 160% at 50% 0%, rgba(158, 232, 255, 0.35) 50%, rgba(158, 232, 255, 0) 52%);
  background-size: 45% 100%;
  background-repeat: repeat-x;
  animation: waveDriftA 14s linear infinite;
  opacity: 0.55;
}

.footer-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-wrap a {
  color: #9ee8ff;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid.four,
  .grid.three,
  .grid.two,
  .roadmaps,
  .dashboard,
  .contact-layout,
  .admin-grid,
  .whatsapp-connect,
  .article-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 68px;
  }

  .sea-wave-band {
    height: 126px;
  }

  .ship-silhouette {
    width: 132px;
    height: 52px;
    bottom: 42px;
  }

  .ship-container {
    width: 112px;
    height: 46px;
    bottom: 38px;
  }

  .ship-passenger {
    width: 126px;
    height: 50px;
    bottom: 44px;
  }

  .ship-tanker {
    width: 138px;
    height: 54px;
    bottom: 34px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .route-links-grid,
  .route-sections-grid {
    grid-template-columns: 1fr;
  }

  .chalk-route-card {
    padding: 12px;
  }

  .chalkboard-infographic {
    padding: 14px 10px;
  }

  .access-links {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .auth-row,
  .course-showcase {
    grid-template-columns: 1fr;
  }

  .mentor-intro {
    grid-template-columns: 1fr;
  }

  .mentor-photo {
    width: min(240px, 100%);
  }

  .affiliation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sea-wave {
    height: 116px;
    background-size: 64% 100%;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(10, 47, 87, 0.1);
    padding: 14px 4vw 18px;
    display: none;
    flex-direction: column;
  }

  .site-nav.open {
    display: flex;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .dept-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .floating-logo,
  .sea-wave,
  .ship-silhouette,
  .ship-real,
  .ship-silhouette::after,
  .hero::before,
  .site-footer::before {
    animation: none !important;
  }
}

/* Compact homepage news block */
.news-compact {
  padding: 14px;
}

.news-compact .kicker {
  margin-bottom: 4px;
}

.news-compact h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.news-compact-grid {
  gap: 10px;
  margin-top: 8px;
}

.news-compact-grid .blog-card {
  padding: 12px;
  border-radius: 12px;
}

.news-compact-grid .blog-card h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.news-compact-grid .blog-card p {
  margin: 0 0 6px;
  font-size: 0.89rem;
  line-height: 1.35;
}

.news-compact-grid .blog-card .text-link {
  font-size: 0.87rem;
  font-weight: 700;
}

.news-slider {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.news-slider .blog-card {
  flex: 0 0 clamp(210px, 26vw, 270px);
  min-height: 150px;
  scroll-snap-align: start;
}

.news-slider::-webkit-scrollbar {
  height: 8px;
}

.news-slider::-webkit-scrollbar-thumb {
  background: rgba(10, 47, 87, 0.28);
  border-radius: 999px;
}
