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

html {
  scroll-padding-top: 90px; /* Account for fixed header */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: #000;
  background: #fafaf5;
  line-height: 1.6;
}

/* Header */
.header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  opacity: 0.8;
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
  z-index: 101;
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  letter-spacing: 1px;
  cursor: pointer;
}

.logo-icon {
  color: #f97316;
  font-size: 20px;
}

.header-search {
  display: flex;
  align-items: center;
  background: #fafaf5;
  border-radius: 20px;
  padding: 8px 20px;
  width: 300px;
}

.header-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  flex: 1;
  padding: 0 10px;
}

.header-search input::placeholder {
  color: #898989;
}

/* Layout */
.layout {
  display: flex;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
  width: 320px;
  background: #fff;
  border-right: 1px solid #e5e5e5;
  position: fixed;
  top: 70px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 30px 0;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #898989;
  border-radius: 3px;
}

/* Phase Headers */
.phase-header {
  padding: 16px 30px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #898989;
  background: transparent;
  border-bottom: 1px solid #e5e5e5;
  margin-top: 12px;
  margin-bottom: 8px;
}

.menu-section {
  margin-bottom: 8px;
}

.menu-item {
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  user-select: none;
}

.menu-item:hover {
  background: #fafaf5;
}

.menu-item.active {
  background: #f97316;
  color: #fff;
}

.menu-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #f97316;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  margin-right: 12px;
}

.menu-item.active .menu-number {
  background: #fff;
  color: #f97316;
}

.menu-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.menu-item.expanded .menu-arrow {
  transform: rotate(90deg);
}

.submenu {
  display: none;
  background: #fafaf5;
}

.submenu.show {
  display: block;
}

.submenu-item {
  padding: 10px 30px 10px 66px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #898989;
  border-left: 2px solid transparent;
}

.submenu-item:hover {
  color: #f97316;
  background: #fff;
  border-left-color: #f97316;
}

.submenu-item.active {
  color: #f97316;
  font-weight: 500;
  border-left-color: #f97316;
}

/* Main Content */
.main-content {
  margin-left: 320px;
  flex: 1;
  padding: 40px 60px;
  max-width: 1200px;
}

/* Stage Card Styles */
.stage-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 72px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  scroll-margin-top: 90px;
  transition: all 0.3s ease;
}

.stage-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stage-card:last-child {
  margin-bottom: 0;
}

.stage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  height: 32px;
  width: 32px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.stage-phase {
  font-size: 13px;
  font-weight: 600;
  color: #898989;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stage-card-title {
  display: flex;
  align-items: center;
  gap: 16px; 
  font-size: 48px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.stage-card-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 60px;
  line-height: 1.6;
  font-weight: 400;
}

.stage-subsection {
  margin-bottom: 56px;
  scroll-margin-top: 90px;
}

.stage-subsection:last-child {
  margin-bottom: 0;
}

.stage-subsection-title {
  font-size: 32px;
  font-weight: 600;
  color: #000;
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f97316;
  letter-spacing: -0.3px;
}

.stage-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e5e5e5 20%, #e5e5e5 80%, transparent 100%);
  margin: 64px 0;
}

/* Hide breadcrumbs */
.breadcrumb {
  display: none;
}

/* Content Styles */
.content-section {
  margin-bottom: 48px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
  margin-top: 48px;
  letter-spacing: -0.2px;
}

.content-section:first-child .section-title:first-child {
  margin-top: 0;
}

.section-text {
  font-size: 16px;
  color: #000;
  line-height: 1.8;
  margin-bottom: 20px;
}

.highlight-box {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  padding: 24px;
  margin: 32px 0;
  border-radius: 4px;
}

.highlight-box p {
  font-size: 15px;
  color: #000;
  line-height: 1.6;
}

/* Updated Q&A Section Styling - Modern Card Design */
.qa-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.qa-box:last-of-type {
  margin-bottom: 0;
}

.qa-box p:first-child {
  color: #000;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.1px;
  display: block;
  padding-left: 0;
}

.qa-box p:first-child::before {
  content: 'Q: ';
  color: #f97316;
  font-weight: 700;
  margin-right: 8px;
}

.qa-box p:first-child strong {
  color: #000;
  font-weight: 600;
}

.qa-box p:not(:first-child) {
  padding-left: 0;
  color: #4a4a4a;
  position: relative;
  line-height: 1.8;
  font-size: 16px;
}

.qa-box p:not(:first-child)::before {
  content: none;
}

.faq-group-title {
  font-size: 22px;
  font-weight: 600;
  color: #f97316;
  margin: 0;
  padding-bottom: 12px;
  letter-spacing: -0.2px;
}

.section-list {
  font-size: 16px;
  color: #000;
  line-height: 1.8;
  margin-bottom: 20px;
  margin-left: 24px;
}

.section-list li {
  margin-bottom: 12px;
}

.edu-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.image-placeholder {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px dashed #f97316;
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.image-placeholder:hover {
  border-color: #ea580c;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.image-placeholder-icon {
  font-size: 48px;
  flex-shrink: 0;
  opacity: 0.6;
}

.image-placeholder-text {
  font-size: 14px;
  line-height: 1.6;
  color: #000;
}

.image-placeholder-text strong {
  color: #f97316;
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.data-table thead tr {
  background: #f97316;
  color: white;
}

.data-table th {
  padding: 12px;
  text-align: left;
  border: 1px solid #e5e5e5;
  font-weight: 600;
}

.data-table td {
  padding: 12px;
  border: 1px solid #e5e5e5;
}

.data-table tbody tr:nth-child(even) {
  background: #fafaf5;
}

.data-table tbody tr:hover {
  background: #fff7ed;
}

.cta-button {
  display: inline-block;
  background: #f97316;
  color: #fff;
  padding: 14px 32px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-top: 24px;
}

.cta-button:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: #f97316;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 968px) {
  .sidebar {
    left: -320px;
    transition: left 0.3s ease;
  }

  .sidebar.mobile-open {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 30px 20px;
  }

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

  .stage-card {
    padding: 32px 24px;
  }

  .stage-card-title {
    font-size: 36px;
  }

  .stage-card-subtitle {
    font-size: 18px;
    margin-bottom: 48px;
  }

  .stage-subsection-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .header-search {
    display: none;
  }

  .image-placeholder {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .image-placeholder-icon {
    font-size: 36px;
  }
}

/* Welcome Screen */
.welcome-screen {
  text-align: center;
  padding: 80px 40px;
}

.welcome-screen h1 {
  font-size: 48px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
}

.welcome-screen p {
  font-size: 18px;
  color: #898989;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Search Results Styles */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #fafaf5;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
  font-size: 14px;
  color: #000;
  margin-bottom: 4px;
}

.search-result-category {
  font-size: 12px;
  color: #f97316;
  margin-bottom: 4px;
}

.search-result-snippet {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.search-result-title strong,
.search-result-snippet strong {
  font-weight: 700;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  padding: 1px 2px;
  border-radius: 2px;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: #898989;
  font-size: 14px;
}

/* Welcome Page Styles */
.welcome-page {
  margin-top: 70px;
  padding: 60px 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-page.hidden {
  display: none;
}

.welcome-header {
  text-align: center;
  margin-bottom: 60px;
}

.welcome-title {
  font-size: 48px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
}

.welcome-subtitle {
  font-size: 20px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Phase Sections */
.phase-section {
  margin-bottom: 80px;
}

.phase-section:last-child {
  margin-bottom: 40px;
}

.phase-title {
  font-size: 28px;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 8px;
  text-align: center;
}

.phase-subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
}

/* Journey Flow Styles */
.journey-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.journey-flow {
  display: grid;
  gap: 60px 80px;
  position: relative;
  padding: 20px;
}

.phase-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 800px;
  margin: 0 auto;
}

.journey-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.stage-image-wrapper {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e5e5e5;
  padding: 30px;
  position: relative;
  overflow: visible;
}

.stage-image-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.2);
  border-color: #f97316;
}

.stage-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0) 0%, rgba(249, 115, 22, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 18px;
}

.stage-image-wrapper:hover::before {
  opacity: 1;
}

.stage-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.stage-number {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 40px;
  height: 40px;
  background: #f97316;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
  z-index: 10;
  border: 3px solid #fff;
}

.stage-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-top: 24px;
  margin-bottom: 8px;
}

.stage-description {
  font-size: 14px;
  color: #666;
  max-width: 250px;
}

@media (max-width: 1024px) {
  .phase-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .welcome-page {
    padding: 40px 20px;
  }

  .welcome-title {
    font-size: 32px;
  }

  .welcome-subtitle {
    font-size: 16px;
  }

  .phase-title {
    font-size: 24px;
  }

  .phase-subtitle {
    font-size: 14px;
  }

  .phase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stage-image-wrapper {
    width: 160px;
    height: 160px;
  }

  .phase-section {
    margin-bottom: 60px;
  }
}

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