/* ==== Base reset & tokens (matches home.css) ==== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0088a8;
  --primary-dark: #006880;
  --primary-light: #00b4d8;
  --primary-glow: rgba(0, 136, 168, 0.35);
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #556070;
  --card-bg: #f4fafc;
  --border: rgba(0, 136, 168, 0.15);
  --nav-height: 68px;
  --shadow-sm: 0 4px 16px rgba(0, 136, 168, 0.12);
  --shadow-md: 0 8px 32px rgba(0, 136, 168, 0.18);
  --shadow-lg: 0 20px 60px rgba(0, 136, 168, 0.22);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ==== Navbar (matches home.css) ==== */
.top-links {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0 60px;
  height: var(--nav-height);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.top-links.scrolled {
  box-shadow: 0 4px 24px rgba(0, 136, 168, 0.13);
  background: rgba(255, 255, 255, 0.98);
}

.top-links ul li a.active {
  background: var(--primary);
  color: #fff;
}

.logo-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.top-logo {
  height: 40px;
  transition: transform 0.4s var(--ease-bounce);
  filter: drop-shadow(0 2px 6px rgba(0, 136, 168, 0.18));
}

.logo-brand-wrapper:hover .top-logo {
  transform: rotate(-8deg) scale(1.1);
}

.brand-name-wrapper .career {
  color: #111;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.brand-name-wrapper .guide {
  color: var(--primary);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.top-links ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  margin-right: 50px;
}

.top-links ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.top-links ul li a::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 55%;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
  transition: transform 0.25s ease;
}

.top-links ul li a:hover {
  color: var(--primary);
  background: rgba(0, 136, 168, 0.07);
}

.top-links ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.top-links ul li a.active::after {
  display: none;
}

.top-links ul li a.nav-btn {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.top-links ul li a.nav-btn:hover {
  background: var(--primary);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(0, 136, 168, 0.08);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.35s var(--ease-smooth);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 20px 30px;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 136, 168, 0.1);
  flex-direction: column;
  gap: 8px;
  transform: translateY(-16px);
  opacity: 0;
  transition: all 0.3s var(--ease-smooth);
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--primary);
  color: #fff;
}


/* ==== Profile / avatar / dropdown (matches home.css) ==== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-menu {
  position: relative;
}

.avatar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

.avatar-btn:hover {
  background: rgba(0, 136, 168, 0.06);
  border-color: rgba(0, 136, 168, 0.4);
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088a8, #00b4d8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: "Roboto", sans-serif;
}

.avatar-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}

.avatar-chevron {
  font-size: 11px;
  color: #888;
  transition: transform 0.25s ease;
}

.avatar-chevron.open {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid rgba(0, 136, 168, 0.15);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 136, 168, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top right;
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 500;
}

.dropdown-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 136, 168, 0.1);
  background: rgba(0, 136, 168, 0.03);
}

.dropdown-avatar-lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088a8, #00b4d8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: "Roboto", sans-serif;
}

.dropdown-fullname {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 2px;
}

.dropdown-email {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.dropdown-body {
  padding: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: "Roboto", sans-serif;
}

.dropdown-item i {
  font-size: 15px;
  color: #888;
  width: 18px;
  text-align: center;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.dropdown-item:hover {
  background: rgba(0, 136, 168, 0.07);
  color: #0088a8;
}

.dropdown-item:hover i {
  color: #0088a8;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 136, 168, 0.1);
  margin: 5px 0;
}

.dropdown-item--danger {
  color: #c0392b;
}

.dropdown-item--danger i {
  color: #c0392b;
}

.dropdown-item--danger:hover {
  background: rgba(192, 57, 43, 0.07);
  color: #c0392b;
}

/* ==== Section eyebrow label (matches home.css) ==== */
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ==== Buttons (matches home.css) ==== */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroEnter 0.7s var(--ease-bounce) both 0.5s;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: "Roboto", sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
}

.primary-btn {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.primary-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px) scale(1.03);
}

/* ==== Footer + scroll-to-top (matches home.css) ==== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 60px 10%;
  flex-wrap: wrap;
}

.footer-brand .career {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

.footer-brand .guide {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: -0.4px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 240px;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 50px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer-col a {
  text-decoration: none;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 10%;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: all 0.35s ease;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.08);
}


/* ==== RIASEC grid (matches home.css) ==== */
.riasec-section {
  padding: 1rem 2rem 3rem;
  text-align: center;
}

.riasec-header {
  max-width: 700px;
  margin: 0 auto 3rem;
}

.riasec-subtitle {
  margin-top: 1rem;
  line-height: 1.7;
  color: var(--text-muted, #6b7280);
}

.riasec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.riasec-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.riasec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.riasec-letter {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0088a8;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.riasec-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.riasec-card p {
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.5;
}


/* ==== Assessment error modal + button spinner (matches home.css) ==== */
.cg-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 32, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: cgFadeIn 0.2s var(--ease-smooth);
}

.cg-modal-overlay.open {
  display: flex;
}

.cg-modal-box {
  background: var(--white);
  width: 90%;
  max-width: 420px;
  border-radius: 14px;
  padding: 32px 28px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: cgSlideUp 0.25s var(--ease-smooth);
}

.cg-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fdecea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.5rem;
  color: #d9534f;
}

.cg-modal-title {
  margin: 0 0 8px;
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.cg-modal-message {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cg-modal-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease-smooth);
}

.cg-modal-btn:hover {
  background: var(--primary-dark);
}

@keyframes cgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cgSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.primary-btn.is-loading {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==== Assessment page: hero ==== */
.test-hero {
  padding: calc(var(--nav-height) + 80px) 60px 90px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  text-align: center;
}

.test-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.test-hero .section-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.test-hero h1 {
  font-family: "Roboto", sans-serif;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.test-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 30px;
}

.test-hero .hero-buttons {
  justify-content: center;
}

/* ==== Assessment page: about-assessment card ==== */
.about-assessment-section {
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.about-assessment-card {
  max-width: 760px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.about-assessment-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.about-assessment-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.about-assessment-card .highlight {
  color: var(--primary);
}

.about-assessment-card p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 15px;
}

.riasec-header .highlight {
  color: var(--primary);
}

/* ==== Responsive ==== */
@media (max-width: 960px) {
  .top-links {
    padding: 0 24px;
  }

  .top-links ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .test-hero {
    padding: calc(var(--nav-height) + 50px) 24px 60px;
  }
}

@media (max-width: 768px) {
  .riasec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-assessment-card {
    padding: 2.2rem 1.6rem;
  }
}

@media (max-width: 480px) {
  .riasec-grid {
    grid-template-columns: 1fr;
  }
}