* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  min-height: 100%;
  margin: 0;
}

/* Onboarding Modal */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.onboarding-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.onboarding-modal {
  background: white;
  max-width: 600px;
  width: 90%;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.onboarding-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.onboarding-close:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.onboarding-title {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-weight: 700;
}

.onboarding-progress {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.onboarding-content {
  margin-bottom: 2rem;
  min-height: 150px;
  display: flex;
  align-items: center;
}

.onboarding-slide {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  display: none;
  animation: fadeIn 0.4s ease;
}

.onboarding-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.onboarding-buttons {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.onboarding-nav-btn {
  flex: 1;
  padding: 1rem;
  font-size: 1rem;
}

.nav-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.nav-overview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: #333;
  transition: all 0.2s;
  border: 1px solid #eee;
}

/* .nav-overview-item:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #CC4D00;
} */

.nav-overview-item i {
  font-size: 1.5rem;
  color: #cc4d00;
  margin-bottom: 0.25rem;
}

/* Navigation */
/* .navbar {
  background: white;
  background: transparent; 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
} */

.navbar {
  background: rgba(255, 255, 255, 0.1); /* add transparency */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: 1200px;
  width: calc(100% - 3rem);
  border-radius: 30px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 2rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  height: 75px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link.home {
  color: white;
}

.nav-link.active {
  color: #cc4d00;
}

.nav-link.active.home {
  color: #ff995a;
}

.nav-link:hover {
  color: #e45700;
}

/* Hero Section */
.hero {
  background:
    linear-gradient(rgba(204, 77, 0, 0.5), rgba(204, 77, 0, 0.32)),
    url("driving-home-through-the-city-at-night-on-a-motorw-2026-01-07-02-29-10-utc.jpg");
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
  color: white;
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  text-align: center;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #1a1a1a;
  color: white;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Industry Grid (used in assessment) */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 4px solid #d4941f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.industry-card .icon {
  font-size: 1.75rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-card .label {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.label-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.label-group .label {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.label-group .sublabel {
  font-size: 0.75rem;
  color: #666;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 968px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-logo {
    height: 40px;
  }

  .onboarding-modal {
    padding: 2.5rem 2rem;
  }

  .onboarding-title {
    font-size: 1.75rem;
  }
}

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

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .onboarding-modal {
    padding: 2rem 1.5rem;
  }

  .onboarding-title {
    font-size: 1.5rem;
  }

  .onboarding-slide {
    font-size: 0.95rem;
  }

  .onboarding-nav-btn {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}

/* Assessment Page Styles */
.assessment-page {
  min-height: 100vh;
  padding: 10rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.assessment-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 280px;
  background: linear-gradient(to bottom, #ffdcc4, transparent);
  z-index: 0;
  pointer-events: none;
}

.assessment-page-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.progress-section {
  margin-bottom: 3rem;
}

.progress-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.progress-bar-full {
  width: 100%;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill-full {
  height: 100%;
  background: #4caf50;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.question-section {
  margin-bottom: 3rem;
}

.question-category {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 500;
}

.question-title {
  font-size: 2.5rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.answer-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 200px;
}

.answer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.answer-card.selected {
  border-color: #d4941f;
  box-shadow: 0 4px 16px rgba(212, 148, 31, 0.2);
}

.answer-icon {
  font-size: 3rem;
  color: #1a1a1a;
}

.answer-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
}

/* Responsive for Assessment Page */
@media (max-width: 768px) {
  .answer-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .question-title {
    font-size: 2rem;
  }

  .answer-card {
    padding: 2rem 1.5rem;
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .question-title {
    font-size: 1.5rem;
  }

  .answer-icon {
    font-size: 2.5rem;
  }

  .answer-label {
    font-size: 1.1rem;
  }
}

/* Assessment Page Enhancements */
.assessment-page-title {
  font-size: 0.85rem;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.question-subtitle {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin-top: 0.5rem;
  max-width: 700px;
}

/* Option List (vertical stack) */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-card {
  background: white;
  padding: 1.15rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  gap: 1rem;
}

.option-card:hover {
  transform: translateX(4px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.option-card.selected {
  border-color: #cc4d00;
  background: #fff8f4;
  box-shadow: 0 3px 10px rgba(204, 77, 0, 0.12);
}

.option-card-label {
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
}

.recommended-badge {
  background: rgba(204, 77, 0, 0.08);
  color: #cc4d00;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.2rem 1rem;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Checkbox + label wrapper for multi-select */
.option-card-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Check indicator for multi-select */
.check-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  font-size: 0.7rem;
  color: transparent;
}

.option-card.selected .check-indicator {
  background: #cc4d00;
  border-color: #cc4d00;
  color: white;
}

/* Confirmation Screen */
.confirmation-content {
  max-width: 700px;
}

.confirmation-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 2.5rem;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid #cc4d00;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.confirmation-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-confirm {
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-confirm-primary {
  background: #cc4d00;
  color: white;
  border-color: #cc4d00;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-confirm-primary:hover {
  background: #b34400;
  border-color: #b34400;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 77, 0, 0.3);
}

.btn-confirm-secondary {
  background: white;
  color: #666;
  border-color: #ddd;
}

.btn-confirm-secondary:hover {
  border-color: #999;
  color: #333;
}

/* Multi-Question Page (Step 4) */
.multi-question-page {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.question-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.question-group-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.question-group-subtitle {
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
  margin-top: -0.5rem;
  font-style: italic;
}

.btn-continue {
  margin-top: 0.5rem;
  padding: 1rem 2.5rem;
  background: #cc4d00;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-end;
}

.btn-continue:hover:not(:disabled) {
  background: #b34400;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 77, 0, 0.3);
}

.btn-continue:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Assessment responsive additions */
@media (max-width: 640px) {
  .confirmation-buttons {
    flex-direction: column;
  }

  .btn-confirm {
    width: 100%;
    justify-content: center;
  }

  .option-card {
    padding: 1rem 1.25rem;
  }

  .option-card-label {
    font-size: 0.95rem;
  }
}

/* Results Page Styles */
.results-page {
  min-height: calc(100vh - 60px);
  padding: 3rem 2rem;
  margin-top: 5rem;
  background: red;
}

.results-container {
  max-width: 1200px;
  margin: 0 auto;
}

.results-title {
  font-size: 3rem;
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 3rem;
}

.results-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Profile Section */
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-label {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 500;
}

.profile-percentage {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 600;
}

.profile-bar {
  width: 100%;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.profile-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.5s ease;
}

.profile-fill.green {
  background: #4caf50;
}

.profile-fill.orange {
  background: #cc4d00;
}

.profile-fill.striped {
  background: repeating-linear-gradient(
    45deg,
    #cc4d00,
    #cc4d00 10px,
    #fc8d49 10px,
    #fc8d49 20px
  );
}

/* Toolkit Card */
.toolkit-card {
  background: linear-gradient(135deg, #cc4d00 0%, #fc8d49 100%);
  padding: 2.5rem;
  border-radius: 12px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.toolkit-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.toolkit-subtitle {
  font-size: 1rem;
  margin: 0;
  opacity: 0.95;
}

.toolkit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toolkit-list li {
  font-size: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.toolkit-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.btn-download {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.btn-download:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Toolkit Module Cards */
.toolkit-modules-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.toolkit-module-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.toolkit-module-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.toolkit-module-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.toolkit-module-icon i {
  color: white;
}

.toolkit-module-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toolkit-module-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.toolkit-module-description {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.9;
  color: white;
}

.toolkit-module-arrow {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.toolkit-module-card:hover .toolkit-module-arrow {
  opacity: 1;
  transform: translateX(4px);
}

@keyframes pulse-white {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.pulse-card {
  animation: pulse-white 2.5s infinite;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.25) !important;
}

/* Results Page Responsive */
@media (max-width: 968px) {
  .results-content {
    grid-template-columns: 1fr;
  }

  .results-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .results-title {
    font-size: 2rem;
  }

  .toolkit-title {
    font-size: 1.5rem;
  }

  .toolkit-card {
    padding: 2rem;
  }

  .toolkit-module-card {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .toolkit-module-icon {
    width: 45px;
    height: 45px;
    font-size: 1.75rem;
  }

  .toolkit-module-title {
    font-size: 1rem;
  }

  .toolkit-module-description {
    font-size: 0.8rem;
  }

  .toolkit-module-arrow {
    font-size: 1.1rem;
  }
}

/* ===== New Results Page (v2) ===== */
.results-page-v2 {
  min-height: 100vh;
  padding-top: 9rem;
  position: relative;
  overflow: hidden;
}

.results-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, #ffdcc4, transparent);
  z-index: 0;
  pointer-events: none;
}

.results-top-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 2.5rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

.results-badge {
  background: rgba(255, 255, 255, 0.6);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
}

.results-partner-logo {
  height: 55px;
  width: auto;
}

.results-main-layout {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Left Column — Profile & Context */
.results-profile-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.results-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.profile-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.profile-visual-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.profile-visual-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-visual-frame {
  border: 2px solid #e8a87c;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.1;
  background: white;
}

.profile-visual-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.profile-visual-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
}

/* Context section */
.context-visual-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.context-visual-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.context-items-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.context-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 90px;
}

.context-item-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.context-item-circle img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.context-item-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
}

/* Rebuild link */
.rebuild-link {
  background: #fce4cd;
  color: #1a1a1a;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  align-self: flex-start;
}

.rebuild-link:hover {
  background: #f8d4b4;
}

/* Right Column — Toolkit */
.results-toolkit-card {
  background: linear-gradient(135deg, #e87830 0%, #f5a06a 100%);
  border-radius: 16px;
  padding: 2.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.results-toolkit-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.results-toolkit-subtitle {
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.95;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.results-toolkit-resources {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.toolkit-resource {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.toolkit-resource:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toolkit-resource-icon {
  font-size: 1.5rem;
  color: #1a1a1a;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolkit-resource-content {
  flex: 1;
}

.toolkit-resource-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: #1a1a1a;
}

.toolkit-resource-desc {
  font-size: 0.8rem;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

/* Results v2 Responsive */
@media (max-width: 968px) {
  .results-main-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.5rem 3rem;
  }

  .results-top-bar {
    padding: 1.5rem 1.5rem 0;
  }

  .results-heading {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  .profile-cards-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-visual-frame {
    max-width: 200px;
  }

  .context-items-row {
    gap: 1rem;
  }

  .context-item-circle {
    width: 90px;
    height: 90px;
  }

  .results-toolkit-card {
    padding: 2rem 1.5rem;
  }

  .results-toolkit-title {
    font-size: 1.5rem;
  }

  .results-heading {
    font-size: 1.5rem;
  }
}

/* ===== Learning Modules Page (v2) ===== */
.modules-page {
  min-height: 100vh;
  padding: 10rem 2rem 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modules-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 340px;
  background: linear-gradient(to bottom, #ffdcc4, transparent);
  z-index: 0;
  pointer-events: none;
}

/* Hero */
.modules-hero-v2 {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto 3rem;
  width: 100%;
}

.modules-hero-v2 h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
  max-width: 650px;
}

.modules-hero-v2 p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 550px;
}

.modules-hero-v2 .btn-modules-cta {
  background: #cc4d00;
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modules-hero-v2 .btn-modules-cta:hover {
  background: #b34400;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 77, 0, 0.3);
}

/* Module Cards Grid */
.modules-grid-v2 {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto 3rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.module-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.module-header {
  background: linear-gradient(135deg, #cc4d00 0%, #fc8d49 100%);
  padding: 1.75rem 1.25rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.module-icon-wrapper {
  background: rgba(255, 255, 255, 0.15);
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-icon {
  font-size: 1.75rem;
  color: white;
}

.module-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

.module-content {
  background: white;
  padding: 1.25rem;
  flex: 1;
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.module-list li {
  font-size: 0.85rem;
  color: #444;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}

.module-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #cc4d00;
}

/* CTA Section */
.modules-cta-v2 {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #e87830 0%, #f5a06a 100%);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: auto;
}

.modules-cta-v2 .cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.modules-cta-v2 .cta-text {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.modules-cta-v2 .btn-cta {
  background: white;
  color: #cc4d00;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.modules-cta-v2 .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background: #fff5ee;
}

/* Modules Page Responsive */
@media (max-width: 1200px) {
  .modules-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .modules-page {
    padding: 8rem 1.5rem 0;
  }

  .modules-grid-v2 {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .modules-hero-v2 h1 {
    font-size: 2rem;
  }

  .modules-hero-v2 p {
    font-size: 1rem;
  }

  .modules-cta-v2 .cta-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .modules-hero-v2 h1 {
    font-size: 1.5rem;
  }
}

/* Module Detail Page Styles */
.module-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("railway-tracks-go-into-distance-against-backdrop-o-2025-03-10-04-15-25-utc.jpg");
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
  color: white;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.module-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.module-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  max-width: 700px;
}

.btn-module-explore {
  background: #4caf50;
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.btn-module-explore:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.toolkits-section {
  padding: 3rem 2rem;
  min-height: calc(100vh - 400px);
}

.toolkits-container {
  max-width: 1400px;
  width: 70%;
  margin: 0 auto;
}

.toolkits-title {
  font-size: 1.5rem;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 2rem;
}

.main-toolkit-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  color: black;
}

.main-toolkit-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: 12px;
  margin-top: -2.5rem;
  margin-left: -2.5rem;
  margin-right: -2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #cc4d00 0%, #fc8d49 100%);
  color: white;
}

.main-toolkit-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 70px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.main-toolkit-icon i {
  font-size: 2.5rem;
  font-weight: 400;
}

.main-toolkit-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.main-toolkit-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.toolkit-description {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.toolkit-intro {
  font-size: 1rem;
  margin: 0;
  margin-left: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.toolkit-focus-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toolkit-focus {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.toolkit-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toolkit-features li {
  font-size: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.toolkit-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 1.25rem;
}

.toolkit-examples {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.examples-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.example-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  height: 100%;
}

.example-tool {
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.75rem;
  text-align: center;
}

.example-tool-icon {
  background: #cc4d00;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.example-tool-icon i {
  font-size: 1.5rem;
  color: white;
}

.example-tool-label {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}

.btn-tool-download {
  background: #45a049;
  border: none;
  width: 100%;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: white;
}

.btn-tool-download:hover {
  background: #327735;
  transform: scale(1.1);
}

.btn-tool-download i {
  font-size: 0.9rem;
}

@keyframes pulse-button {
  0% {
    box-shadow: 0 0 0 0 rgba(69, 160, 73, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(69, 160, 73, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(69, 160, 73, 0);
  }
}

.btn-tool-download.pulse-button {
  animation: pulse-button 2s infinite;
}

.btn-download-toolkit {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.btn-download-toolkit:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-download-toolkit i {
  font-size: 1rem;
}

/* Module Page Responsive */
@media (max-width: 968px) {
  .main-toolkit-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .module-hero-title {
    font-size: 2rem;
  }

  .example-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .main-toolkit-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .main-toolkit-card {
    padding: 2rem 1.5rem;
  }

  .module-hero-title {
    font-size: 1.5rem;
  }

  .example-tools-grid {
    grid-template-columns: 1fr;
  }

  .btn-download-toolkit {
    width: 100%;
    justify-content: center;
  }
}

/* Dashboard Styles (Modern Grid Layout) */
.dashboard-page {
  min-height: calc(100vh - 80px);
  /* Adjust based on navbar height */
  padding: 2rem;
  background-color: #f8f9fa;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

.dashboard-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Dashboard Grid for Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.status-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  height: 100%;
}

.status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #5b6b79;
}

.card-status {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-success {
  color: #2e7d32;
}

.status-warning {
  color: #ed6c02;
}

.status-danger {
  color: #d32f2f;
}

.card-body {
  flex: 1;
  margin-bottom: 1.5rem;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.card-footer {
  padding-top: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
}

.card-footer strong {
  color: #333;
}

.card-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.card-link:hover {
  text-decoration: underline;
}

/* Snapshot Section */
.snapshot-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.snapshot-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.snapshot-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.snapshot-header .subtitle {
  font-size: 1rem;
  color: #666;
}

.snapshot-layout {
  display: flex;
  gap: 2rem;
}

/* Metrics Sidebar in Snapshot */
.snapshot-metrics {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 8px;
  padding: 1.25rem;
  /* border-left: 4px solid #ccc; */
  background: #fafafa;
}

.metric-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.metric-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.metric-danger {
  background: #fff5f5;
  /* border-left-color: #d32f2f; */
}

.metric-danger .metric-value {
  color: #d32f2f;
}

.metric-warning {
  background: #fff8e1;
  /* border-left-color: #ed6c02; */
}

.metric-warning .metric-value {
  color: #ed6c02;
}

/* Enhanced Table */
.snapshot-table-wrapper {
  flex: 1;
  overflow-x: auto;
}

.snapshot-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.snapshot-table th {
  text-align: left;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #eee;
}

.snapshot-table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: #333;
}

.snapshot-table tr:hover td {
  background-color: #fcfcfc;
}

.snapshot-table tr:last-child td {
  border-bottom: none;
}

.topic-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.topic-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f0f4f8;
  color: #5b6b79;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Pills */
.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pill-success {
  background-color: #e8f5e9;
  color: #1b5e20;
}

.pill-warning {
  background-color: #fff3e0;
  color: #e65100;
}

.pill-danger {
  background-color: #ffebee;
  color: #c62828;
}

.text-muted {
  color: #9ca3af;
  font-style: italic;
  font-size: 0.9rem;
}

.btn-icon {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-icon:hover {
  background: #f3f4f6;
  color: #333;
}

/* Responsive */
@media (max-width: 992px) {
  .snapshot-layout {
    flex-direction: column;
  }

  .snapshot-metrics {
    width: 100%;
    flex-direction: row;
  }

  .metric-card {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .snapshot-metrics {
    flex-direction: column;
  }
}
