/* Global Styles */
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  background-color: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Navigation Bar - Clean & Professional 2025/2026 Design */
.navbar {
  background: linear-gradient(
    135deg,
    rgba(240, 253, 244, 0.92) 0%,
    rgba(239, 246, 255, 0.92) 35%,
    rgba(245, 243, 255, 0.92) 70%,
    rgba(240, 253, 250, 0.92) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

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

/* Brand/Logo Styling */
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.navbar .brand:hover {
  transform: translateY(-1px);
}

.navbar .site-logo {
  height: 3rem;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
  transition: all 0.2s ease;
}

.navbar .brand:hover .site-logo {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #059669 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* Navigation Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Quick Access Icons */
.quick-access-icons {
  display: flex;
  gap: 0.25rem;
  margin-right: 0.75rem;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.quick-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.5rem 0.625rem;
  border-radius: 10px;
  text-decoration: none;
  color: #475569;
  transition: all 0.2s ease;
  background: transparent;
}

.quick-icon:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #059669;
  transform: translateY(-1px);
}

.quick-icon svg {
  opacity: 0.85;
}

.quick-icon:hover svg {
  opacity: 1;
}

.quick-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.75;
}

.quick-icon:hover .quick-label {
  opacity: 1;
}

/* Pricing Button */
.pricing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  transition: all 0.2s ease;
}

.pricing-btn:hover {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.pricing-btn svg {
  width: 15px;
  height: 15px;
}

/* Login Button */
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.login-btn svg {
  width: 16px;
  height: 16px;
}

/* Icon Buttons (Search, User Menu) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--icon-btn-bg, rgba(255, 255, 255, 0.6));
  border: 1px solid var(--icon-btn-border, rgba(0, 0, 0, 0.05));
  color: var(--icon-btn-color, #475569);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.icon-btn:hover {
  background: var(--icon-btn-hover-bg, white);
  color: var(--icon-btn-hover-color, #059669);
  border-color: var(--icon-btn-hover-border, rgba(5, 150, 105, 0.2));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Cart Header Button */
.cart-header-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

/* Search Dropdown - Modern Design */
.search-container {
  position: relative;
}

.search-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 0.75rem;
  z-index: 2000;
  display: none;
}

.search-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  transform: rotate(45deg);
}

#search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9375rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: inherit;
}

#search-input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

#search-input::placeholder {
  color: #94a3b8;
}

.search-results {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.search-results li {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
  color: #334155;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.search-results li:hover {
  background: linear-gradient(135deg, rgba(200, 245, 230, 0.5) 0%, rgba(230, 220, 250, 0.5) 100%);
  color: #059669;
  transform: translateX(4px);
}

/* Keyboard navigation active state */
.search-item-active {
  background: linear-gradient(135deg, rgba(200, 245, 230, 0.5) 0%, rgba(230, 220, 250, 0.5) 100%) !important;
  color: #059669 !important;
  transform: translateX(4px);
}

/* No results state */
.no-results {
  text-align: center;
  padding: 1rem 0.5rem !important;
  cursor: default !important;
}

.no-results:hover {
  background: none !important;
  transform: none !important;
}

.no-results-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.no-results-hint {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Search link styles */
.search-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.search-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.search-info {
  flex: 1;
  min-width: 0;
}

.search-title {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-title mark {
  background: rgba(5, 150, 105, 0.15);
  color: #059669;
  border-radius: 2px;
  padding: 0 1px;
}

.search-category {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
}

.search-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f0f9ff;
  color: #0369a1;
  flex-shrink: 0;
}

.search-more {
  text-align: center;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.25rem;
  padding-top: 0.5rem !important;
}

.search-more a {
  color: #059669;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.search-more a:hover {
  text-decoration: underline;
}

/* Loading spinner */
.search-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #e5e7eb;
  border-top-color: #059669;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

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

/* Keyboard shortcut hint */
.search-shortcut-hint {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #9ca3af;
  pointer-events: none;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* User Dropdown Menu - Modern Design */
.user-dropdown-container {
  position: relative;
}

.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  z-index: 2000;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
}

.user-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  transform: rotate(45deg);
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.user-dropdown-menu a:hover {
  background: linear-gradient(135deg, rgba(200, 245, 230, 0.5) 0%, rgba(230, 220, 250, 0.5) 100%);
  color: #059669;
}

.user-dropdown-menu a svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.user-dropdown-menu a:hover svg {
  opacity: 1;
}

/* Layout for side navigation and content */
.main-layout {
  display: flex;
  gap: 3rem;
  margin: 2rem auto;
  max-width: 1600px;
  padding: 0 1rem 0 0.5rem;
}

/* Modern Sidebar Navigation */
.side-nav {
  flex: 0 0 260px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  height: fit-content;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: visible;
  margin-bottom: 2rem;
  margin-left: 0.5rem;
}

/* Hide sidebar on test pages - Multiple selectors for reliability */
body.test-page .side-nav,
.test-page .side-nav,
.test-page aside.side-nav,
main.test-page .side-nav,
main.test-page aside.side-nav,
.test-page .side-nav,
aside.side-nav.test-page {
  display: none !important;
}

body.test-page .main-layout,
.test-page .main-layout,
main.test-page .main-layout {
  display: block !important;
  grid-template-columns: 1fr !important;
}

body.test-page .content,
.test-page .content,
main.test-page .content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Profile pages - Hide sidebar and center content */
.profile-page aside.side-nav,
main.profile-page .side-nav,
main.profile-page aside.side-nav,
.profile-page .side-nav {
  display: none !important;
}

.profile-page,
main.profile-page {
  display: block !important;
  grid-template-columns: 1fr !important;
  max-width: 100% !important;
}

.profile-page .content,
main.profile-page .content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* Also hide any custom sidebars in test templates */
.test-page .nav-bar + .side-nav,
.test-page .side-nav[style*="fixed"],
body .side-nav[style*="fixed"],
body .nav-bar + .side-nav {
  display: none !important;
}

/* Hide custom nav-bars in test templates - use base navbar instead */
.test-page .nav-bar:not(.navbar) {
  display: none !important;
}

/* Ensure test pages use full width without sidebar offset */
.test-page .main-content {
  margin-left: 0 !important;
  margin-top: 0 !important;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
/* Sidebar Header */
.side-nav-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(135deg, 
    rgba(240, 253, 244, 0.5) 0%,
    rgba(239, 246, 255, 0.5) 50%,
    rgba(245, 243, 255, 0.5) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.side-nav-header svg {
  color: #6366f1;
  flex-shrink: 0;
}

.side-nav-header h3 {
  margin: 0;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Sidebar Menu Styling */
.side-menu {
  padding: 0.5rem;
}

.nav-category {
  border: none;
  margin-bottom: 0.25rem;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.nav-category:hover {
  background: rgba(255, 255, 255, 0.5);
}

.nav-category summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  color: #334155;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border-radius: 10px;
  position: relative;
}

.nav-category summary::-webkit-details-marker {
  display: none;
}

.nav-category summary::after {
  content: '';
  position: absolute;
  right: 0.875rem;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-category[open] summary::after {
  transform: rotate(-135deg);
}

.nav-category summary:hover {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.6) 0%, rgba(245, 243, 255, 0.6) 100%);
  color: #059669;
}

.nav-category summary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
}

.nav-category summary:hover svg {
  opacity: 1;
}

.nav-category > ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem 0;
  background: rgba(248, 250, 252, 0.4);
  border-radius: 0 0 10px 10px;
}

.nav-category > ul > li {
  margin: 0;
}

.nav-category > ul > li > a {
  display: block;
  padding: 0.5rem 0.875rem 0.5rem 2.5rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.nav-category > ul > li > a::before {
  content: '';
  position: absolute;
  left: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: #cbd5e1;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.nav-category > ul > li > a:hover {
  color: #059669;
  background: rgba(255, 255, 255, 0.6);
  padding-left: 2.75rem;
}

.nav-category > ul > li > a:hover::before {
  background: #059669;
  width: 5px;
  height: 5px;
  left: 1.625rem;
}

/* Subcategory styling (nested details) */
.nav-subcategory-list {
  padding: 0.25rem 0 !important;
  background: transparent !important;
}

.nav-subcategory {
  margin: 0 !important;
}

.nav-subcategory-details {
  margin: 0;
  border: none;
}

.nav-subcategory-details summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.5rem 2.25rem;
  color: #475569;
  font-size: 0.80rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  list-style: none;
}

.nav-subcategory-details summary::-webkit-details-marker {
  display: none;
}

.nav-subcategory-details summary::after {
  content: '';
  position: absolute;
  right: 0.875rem;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-subcategory-details[open] summary::after {
  transform: rotate(-135deg);
}

.nav-subcategory-details summary:hover {
  color: #6366f1;
  background: rgba(255, 255, 255, 0.5);
}

.nav-subcategory-details summary svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.nav-subcategory-details > ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: rgba(248, 250, 252, 0.3);
}

.nav-subcategory-details > ul > li > a {
  display: block;
  padding: 0.375rem 0.875rem 0.375rem 3.25rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.80rem;
  font-weight: 500;
  transition: all 0.15s cubic-bezier(0.4,0,0.2,1);
}

.nav-subcategory-details > ul > li > a:hover {
  color: #059669;
  background: rgba(255, 255, 255, 0.5);
  padding-left: 3.5rem;
}

/* Nested navigation for deep hierarchy (e.g., Occupational > IT > Python) */
.nav-nested-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: rgba(248, 250, 252, 0.3);
}

.nav-nested-subcategory {
  margin: 0;
}

.nav-nested-details {
  margin: 0;
  border: none;
}

.nav-nested-details summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem 0.4rem 3rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  list-style: none;
}

.nav-nested-details summary::-webkit-details-marker {
  display: none;
}

.nav-nested-details summary::after {
  content: '';
  position: absolute;
  right: 0.875rem;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-nested-details[open] summary::after {
  transform: rotate(-135deg);
}

.nav-nested-details summary:hover {
  color: #059669;
  background: rgba(255, 255, 255, 0.5);
}

.nav-nested-details summary svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.nav-nested-details > ul {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0;
  background: rgba(241, 245, 249, 0.4);
}

.nav-nested-details > ul > li > a {
  display: block;
  padding: 0.3rem 0.875rem 0.3rem 3.75rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-nested-details > ul > li > a:hover {
  color: #059669;
  background: rgba(255, 255, 255, 0.5);
  padding-left: 4rem;
}

/* Exam item row with label and quick links - Professional Certifications */
.nav-exam-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.875rem 0.35rem 3.75rem;
  transition: background 0.15s ease;
}

.nav-exam-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.nav-exam-item .exam-label {
  color: #475569;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.nav-exam-item .exam-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.nav-exam-item .exam-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.1);
  text-decoration: none;
  font-size: 0.65rem;
  transition: all 0.15s ease;
}

.nav-exam-item .exam-links a:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.1);
}

.nav-exam-item .exam-links a[title="Course"] {
  background: rgba(34, 197, 94, 0.15);
}

.nav-exam-item .exam-links a[title="Course"]:hover {
  background: rgba(34, 197, 94, 0.25);
}

.nav-exam-item .exam-links a[title="Exam Simulator"] {
  background: rgba(239, 68, 68, 0.1);
}

.nav-exam-item .exam-links a[title="Exam Simulator"]:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Deep nested (3rd level) - for IT > Programming structure */
.nav-deep-nested {
  margin: 0;
}

.nav-deep-nested-details {
  margin: 0;
  border: none;
}

.nav-deep-nested-details summary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.875rem 0.35rem 4rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  list-style: none;
}

.nav-deep-nested-details summary::-webkit-details-marker {
  display: none;
}

.nav-deep-nested-details summary::after {
  content: '';
  position: absolute;
  right: 0.875rem;
  width: 3px;
  height: 3px;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-deep-nested-details[open] summary::after {
  transform: rotate(-135deg);
}

.nav-deep-nested-details summary:hover {
  color: #059669;
  background: rgba(255, 255, 255, 0.5);
}

.nav-deep-nested-details > ul {
  list-style: none;
  margin: 0;
  padding: 0.1rem 0;
  background: rgba(236, 240, 244, 0.5);
}

.nav-deep-nested-details > ul > li > a {
  display: block;
  padding: 0.25rem 0.875rem 0.25rem 4.5rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-deep-nested-details > ul > li > a:hover {
  color: #059669;
  background: rgba(255, 255, 255, 0.6);
  padding-left: 4.75rem;
}

/* Coming Soon items in sidebar */
.coming-soon-item {
  padding: 0.25rem 0.875rem 0.25rem 4rem;
}

.coming-soon-label {
  display: block;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 500;
  font-style: italic;
  cursor: default;
}

.coming-soon-label small {
  font-size: 0.55rem;
  opacity: 0.8;
}

/* Content area styling */
.content {
  flex: 1 1 auto;
  min-width: 0;
}

/* Hero section - Smaller */
.hero {
  position: relative;
  color: #ffffff;
  text-align: left;
  padding: 0;
  background: url('../img/hero2.png') no-repeat center center / cover;
  border-radius: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 400px;
  box-shadow: 0 12px 32px rgba(212, 197, 249, 0.2);
  margin-bottom: 3rem;
  overflow: hidden;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero h1,
.hero h2,
.hero p,
.hero * {
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0.45) 0%, 
    rgba(0, 0, 0, 0.35) 30%, 
    rgba(0, 0, 0, 0.35) 60%, 
    rgba(0, 0, 0, 0.40) 90%, 
    rgba(0, 0, 0, 0.30) 100%),
    linear-gradient(90deg, 
    rgba(181, 244, 230, 0.20) 0%, 
    rgba(197, 232, 245, 0.15) 30%, 
    rgba(212, 197, 249, 0.20) 60%, 
    rgba(181, 244, 230, 0.15) 90%, 
    transparent 100%);
  background-blend-mode: multiply, normal;
  z-index: 0;
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 4rem;
  box-sizing: border-box;
}

.hero-text-wrapper {
  max-width: 650px;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
  font-weight: 800;
  max-width: 100%;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
}
.hero p {
  font-size: 1.2rem;
  max-width: 100%;
  margin: 0 0 2rem;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Features section - 3 in a row, smaller */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 1400px;
  padding: 0 2rem;
  align-items: start;
}

.feature-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  display: block;
}

.feature-link:hover {
  transform: translateY(-6px);
}

.features .feature {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 100%;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.features .feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #14b8a6 50%, #a78bfa 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-link:hover .feature {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(5, 150, 105, 0.2);
  transform: translateY(-4px);
}

.feature-link:hover .feature::before {
  transform: scaleX(1);
}

.features .feature h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #059669;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.features .feature p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9375rem;
}

/* Infographic section */
.infographic-section {
  margin: 4.236rem auto 6.18rem;
  max-width: 1400px;
  padding: 0 2.618rem;
}

.infographic-container {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
  position: relative;
  overflow: visible;
  text-align: center;
}

.infographic-container::before {
  display: none;
}

.infographic-header {
  text-align: center;
  margin-bottom: 3.236rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.infographic-header h2 {
  font-size: 2.75rem;
  color: #059669;
  font-weight: 800;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.03em;
}

.infographic-intro {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #4a5568;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.infographic-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(212, 197, 249, 0.15);
  background: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infographic-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  transition: transform 0.5s ease;
}

.infographic-image:hover {
  transform: scale(1.02);
}

/* Tests grid section */
.tests {
  margin: 4rem auto;
  max-width: 1400px;
  padding: 0 2rem;
}

/* Advisor Section */
.advisor-section {
  background: linear-gradient(135deg, #F0F9FF 0%, #ffffff 100%);
  padding: 4rem 2rem;
  margin: 4rem 0;
  border-radius: 24px;
  border: 2px solid rgba(212, 197, 249, 0.3);
}

.advisor-content {
  max-width: 1000px;
  margin: 0 auto;
}

.advisor-text h2 {
  font-size: 2.5rem;
  color: #059669;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
}

.advisor-subtitle {
  font-size: 1.2rem;
  color: #6B7280;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.advisor-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.advisor-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(212, 197, 249, 0.3);
}

.advisor-feature-item svg {
  color: #059669;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.advisor-feature-item span {
  color: #374151;
  font-size: 1rem;
  line-height: 1.5;
}

.advisor-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.advisor-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6B7280;
  font-style: italic;
}

/* Benefits Section */
.benefits-section {
  background: #ffffff;
  padding: 4rem 2rem;
  margin: 4rem 0;
}

.benefits-section h2 {
  font-size: 2.5rem;
  color: #059669;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

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

.benefit-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.benefit-link:hover {
  transform: translateY(-4px);
}

.benefit-card {
  background: linear-gradient(135deg, #ffffff 0%, #F0F9FF 100%);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(212, 197, 249, 0.3);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  cursor: pointer;
}

.benefit-link:hover .benefit-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 197, 249, 0.2);
  border-color: #D4C5F9;
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.25rem;
  color: #059669;
  font-weight: 700;
  margin-bottom: 1rem;
}

.benefit-card p {
  color: #6B7280;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

/* How It Works Section */
.how-it-works {
  background: linear-gradient(135deg, #F0F9FF 0%, #ffffff 100%);
  padding: 4rem 2rem;
  margin: 4rem 0;
}

.how-it-works h2 {
  font-size: 2.5rem;
  color: #059669;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(181, 244, 230, 0.90) 0%, 
    rgba(197, 232, 245, 0.85) 50%, 
    rgba(212, 197, 249, 0.90) 100%),
    linear-gradient(135deg, #B5F4E6 0%, #C5E8F5 50%, #D4C5F9 100%);
  background-blend-mode: overlay, normal;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.step h3 {
  font-size: 1.25rem;
  color: #059669;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step p {
  color: #6B7280;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.tests h2 {
  margin-bottom: 4rem;
  font-size: 3rem;
  color: #059669;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
}

.test-category {
  margin-bottom: 6.18rem;
}

.test-category-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #D4C5F9;
}

.test-category-header h3 {
  font-size: 1.3rem;
  color: #059669;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
  max-width: 1000px;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  row-gap: 2rem;
  grid-auto-rows: 1fr;
  align-items: start;
}

/* All categories use 4 columns for consistent layout */

.test-item {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-width: 0;
}

/* Square test items for main page */
.test-item-square-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.test-item-square-link:hover {
  transform: translateY(-4px);
}

.test-item-square {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  height: 100%;
}

.test-item-square-link:hover .test-item-square {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(5, 150, 105, 0.2);
}

.test-item-square::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #14b8a6 50%, #a78bfa 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
  pointer-events: none;
}


.test-item-square:hover::before {
  transform: scaleX(1);
}

.test-item-image-wrapper {
  width: 100%;
  height: 50%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F0F9FF 0%, #ffffff 100%);
  position: relative;
  z-index: 2;
}

.test-item-square img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.test-item-content {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.test-item-square h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  color: #059669;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.test-item-square p {
  font-size: 0.85rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.main-tests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.tests-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.tests-subtitle {
  font-size: 1.1rem;
  color: #6B7280;
  line-height: 1.6;
  margin-top: 1rem;
}

.more-tests-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #F0F9FF 0%, #ffffff 100%);
  border-radius: 16px;
  border: 2px solid rgba(212, 197, 249, 0.3);
}

.more-tests-cta p {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 1rem;
}

.test-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #14b8a6 50%, #a78bfa 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.test-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(5, 150, 105, 0.2);
}

.test-item:hover::before {
  transform: scaleX(1);
}

.test-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f8fafc;
  padding: 0.618rem;
  margin-bottom: 0.618rem;
}

/* Programming icons - ensure consistent sizing and better visual presentation */
.test-item .programming-icon {
  width: 100%;
  height: 140px;
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
  padding: 1.236rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.test-item:hover .programming-icon {
  transform: scale(1.05);
}
.test-item h3 {
  margin: 0.25rem 0 0.618rem;
  color: #059669;
  font-size: 1.236rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.test-item p {
  flex-grow: 1;
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.primary-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
  font-weight: 700;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 24px rgba(5, 150, 105, 0.35);
  transform: translateY(-2px);
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.primary-btn:hover::before {
  left: 100%;
}

.secondary-btn {
  background: white;
  color: #334155;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  border-radius: 10px;
  text-align: center;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

.test-item-square-link .secondary-btn {
  pointer-events: none;
  cursor: inherit;
}

.secondary-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
  transform: translateY(-2px);
  border-color: #059669;
}

.test-item-square-link:hover .secondary-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
  border-color: #059669;
}

/* Feature tile link styles */
.feature-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.feature-link .feature {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-link:hover .feature,
.feature-link:focus .feature {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.feature-link:active .feature {
  transform: translateY(0);
}

/* Interview chat interface */
.chat-container {
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  max-width: 800px;
  margin: 1rem 0;
  padding: 1rem;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.user-message,
.bot-message {
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 4px;
  max-width: 80%;
  line-height: 1.4;
}
.user-message {
  align-self: flex-end;
  background-color: #F0F9FF;
  color: #059669;
  margin-left: auto;
}
.bot-message {
  align-self: flex-start;
  background-color: #eef2ff;
  color: #059669;
  margin-right: auto;
}
.chat-input {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.chat-input input[type="text"] {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
}
.chat-input button {
  padding: 0.5rem 1rem;
}

/* How it works and FAQ sections */
.how-it-works,
.faq {
  margin: 5rem auto;
  max-width: 1400px;
  padding: 3.5rem 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e8f0;
}

.how-it-works h2,
.faq h2 {
  color: #059669;
  margin-bottom: 2.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
}

.how-it-works ol {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 0;
  list-style: none;
  counter-reset: step-counter;
}

.how-it-works ol li {
  counter-increment: step-counter;
  margin-bottom: 2rem;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #2c3e50;
  padding-left: 4rem;
  position: relative;
  padding-top: 0.5rem;
}

.how-it-works ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, 
    rgba(181, 244, 230, 0.90) 0%, 
    rgba(197, 232, 245, 0.85) 50%, 
    rgba(212, 197, 249, 0.90) 100%),
    linear-gradient(135deg, #B5F4E6 0%, #C5E8F5 50%, #D4C5F9 100%);
  background-blend-mode: overlay, normal;
  position: relative;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 12px rgba(212, 197, 249, 0.2);
}

.step-number::before,
[class*="step-number"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.12) 0%, 
    rgba(0, 0, 0, 0.10) 50%, 
    rgba(0, 0, 0, 0.15) 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.step-number > *,
[class*="step-number"] > * {
  position: relative;
  z-index: 1;
}

.how-it-works ol li strong {
  color: #059669;
  font-weight: 700;
  font-size: 1.2rem;
}
.faq h3 {
  margin-top: 1rem;
  color: #059669;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-social {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: #f3f4f6;
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

/* Footer text and links */
.footer,
.footer *,
.footer h4,
.footer ul,
.footer li,
.footer a,
.footer a:link,
.footer a:visited {
  color: #e5e7eb;
}

.footer a:hover,
.footer a:active {
  color: #059669;
}

/* Remove bullet points from footer lists */
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}

.footer h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem 0;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.4);
}

.footer a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.2s ease;
  display: inline-block;
  padding: 0.25rem 0;
  position: relative;
}

.footer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.footer a:hover {
  opacity: 0.9;
}

.footer a:hover::after {
  width: 100%;
}

.footer-bottom {
  color: #9ca3af;
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Footer responsive styles */
@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 1.25rem;
  }
  
  .footer h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }
  
  .footer a {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    font-size: 0.85rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer h4 {
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
  }
  
  .footer li {
    margin-bottom: 0.625rem;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
  }
}

/* Test pages adjustments */
.test-section {
  margin-top: 1rem;
  padding: 2.5rem;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Modern Numerical Test Styling */
.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(5, 150, 105, 0.1);
}

.test-header h2 {
  margin: 0;
  color: #059669;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.test-header > div {
  display: flex;
  gap: 2rem;
  align-items: center;
}

#timer {
  font-weight: 700;
  color: #059669;
  font-size: 1.125rem;
}

#question-counter {
  font-weight: 600;
  color: #64748b;
}

/* Tab Navigation */
.tabs-container {
  margin-bottom: 2rem;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(200, 245, 230, 0.2) 0%, rgba(230, 220, 250, 0.2) 100%);
  border-radius: 12px;
}

.tab-link {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-link:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(5, 150, 105, 0.3);
  color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-link.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: #059669;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.tab-content {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Modern Data Tables */
.data-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  background: white;
}

.data-table thead {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.data-table thead th {
  padding: 1.25rem 1.5rem;
  color: white;
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: left;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 3px solid #047857;
}

.data-table thead th:first-child {
  border-top-left-radius: 12px;
}

.data-table thead th:last-child {
  border-top-right-radius: 12px;
}

.data-table tbody tr {
  transition: all 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
  background: linear-gradient(135deg, rgba(200, 245, 230, 0.15) 0%, rgba(230, 220, 250, 0.15) 100%);
}

.data-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(200, 245, 230, 0.3) 0%, rgba(230, 220, 250, 0.3) 100%);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}

.data-table tbody td {
  padding: 1rem 1.5rem;
  color: #334155;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.data-table tbody td:first-child {
  font-weight: 600;
  color: #059669;
  background: linear-gradient(90deg, rgba(200, 245, 230, 0.2) 0%, transparent 100%);
}

.data-table tbody td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

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

.data-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.data-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Chart Container Styling */
.tab-content canvas {
  max-width: 100%;
  height: auto !important;
  border-radius: 8px;
}

/* Question Area Styling */
.question-area {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(200, 245, 230, 0.15) 0%, rgba(230, 220, 250, 0.15) 100%);
  border-radius: 12px;
  border: 2px solid rgba(5, 150, 105, 0.1);
}

#statement-text {
  font-weight: 600;
  font-size: 1.125rem;
  color: #1e293b;
  min-height: 3rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.answer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.answer-buttons .btn {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

#answer-true {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: 2px solid #059669;
}

#answer-true:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
  transform: translateY(-2px);
}

#answer-false {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: 2px solid #dc2626;
}

#answer-false:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
  transform: translateY(-2px);
}

#answer-cant {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: 2px solid #d97706;
}

#answer-cant:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
  transform: translateY(-2px);
}

#skip-question {
  background: white;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

#skip-question:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
  transform: translateY(-2px);
}

/* Ensure test containers use full width */
#switch-puzzle-area,
#numerical-test-container,
#verbal-test-container,
#personality-test-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Spatial Ability Test styles - Standardized sizes and margins */
.spatial-test {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.spatial-test h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.spatial-test #spatial-question-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spatial-test #spatial-question-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 0 1rem;
}

.spatial-test #spatial-timer,
.spatial-test #spatial-question-counter {
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #667eea;
}

.spatial-test .main-image {
  display: block;
  max-width: 350px;
  width: auto;
  height: auto;
  max-height: 280px;
  margin: 0 auto 1.5rem auto;
  object-fit: contain;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.spatial-test .options-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 auto 1.5rem auto;
  max-width: 500px;
  justify-items: center;
  padding: 0 1rem;
}

.spatial-test .spatial-option {
  width: 130px;
  height: 130px;
  padding: 0.5rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.spatial-test .spatial-option img {
  max-width: 115px;
  max-height: 115px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.spatial-test .spatial-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.spatial-test .spatial-option.selected {
  border-color: #667eea;
  background: #e8edff;
}

.spatial-test .spatial-option.correct {
  border-color: #28a745;
  background: #d4edda;
}

.spatial-test .spatial-option.incorrect {
  border-color: #dc3545;
  background: #f8d7da;
}

.spatial-test .spatial-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.spatial-test .explanation {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #e8f4fd;
  border-left: 4px solid #17a2b8;
  border-radius: 0 8px 8px 0;
  color: #0c5460;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .spatial-test .options-container {
    grid-template-columns: 1fr;
  }
  
  .spatial-test .main-image {
    max-height: 300px;
  }
  
  .spatial-test .spatial-option {
    max-width: 100%;
  }
}

/* Abstract Thinking test styles - Standardized sizes and margins */
.abstract-grid {
  display: grid;
  grid-template-columns: repeat(3, 75px);
  gap: 6px;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  max-width: 250px;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}
.abstract-grid canvas {
  border: 1px solid #cccccc;
  width: 75px;
  height: 75px;
  background: white;
  border-radius: 4px;
}
.abstract-grid .missing-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 1px dashed #888888;
  color: #888888;
  width: 75px;
  height: 75px;
  background: white;
  border-radius: 4px;
}
.abstract-options-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 450px;
  margin: 0 auto 1.5rem auto;
  padding: 0 1rem;
}
.abstract-option-btn {
  border: 2px solid #D4C5F9;
  background-color: #F0F9FF;
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  width: 90px;
  height: 90px;
  min-width: 90px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
.abstract-option-btn:hover {
  border-color: #667eea;
  background: #e8edff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}
.abstract-option-btn canvas {
  width: 82px;
  height: 82px;
  max-width: 82px;
  max-height: 82px;
}
.abstract-option-btn.selected-correct {
  border-color: #28a745;
  background-color: #d4edda;
}
.abstract-option-btn.selected-wrong {
  border-color: #e74c3c;
  background-color: #fdecea;
}

/* Chart container (progress page) */
.chart-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 1rem;
}

/* Progress page enhancements */
.progress-section {
  overflow-x: auto;
}

/* Subscription page styles */
.subscription-container {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}
.subscription-container h2 {
  margin-top: 0;
  color: #059669;
  font-size: 1.8rem;
}
.subscription-container p {
  max-width: 700px;
  margin: 0.5rem 0 1.5rem;
  font-size: 1rem;
}
.subscription-container .plans {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.subscription-container .plan-card {
  flex: 1 1 280px;
  border: 1px solid #e0e6ed;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}
.subscription-container .plan-card.best-value {
  border: 2px solid #D4C5F9;
  background: linear-gradient(135deg, #ffffff 0%, #F0F9FF 100%);
}
.subscription-container .plan-card h3 {
  margin: 0 0 0.5rem;
  color: #059669;
  font-size: 1.3rem;
}
.subscription-container .plan-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 0.5rem;
}
.subscription-container .plan-card .price .period {
  font-size: 1rem;
  font-weight: normal;
  color: #6b7280;
}
.subscription-container .plan-card label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #34495e;
}
.subscription-container .plan-card input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #b3c2d1;
  border-radius: 4px;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.subscription-container .plan-card button {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.5rem;
}
.subscription-container .disclaimer {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* Planner Bot (advice results) styling */
.advice-section {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.advice-section h2 {
  margin-top: 0;
  color: #059669;
  font-size: 1.6rem;
}
.advice-section h3 {
  color: #059669;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.advice-section h4 {
  color: #059669;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}
.plan-track {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f9fbfd;
  border: 1px solid #e0e6ed;
  border-radius: 4px;
}
.plan-track h3 {
  margin-top: 0;
  font-size: 1.2rem;
}
.track-test {
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e6ed;
}
.track-test:last-child {
  border-bottom: none;
}
.subscription-recommendations ul {
  list-style: none;
  padding: 0;
}
.subscription-recommendations li {
  margin-bottom: 0.5rem;
}

/* Progress page card styling */
.test-summary {
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}
.test-summary h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #059669;
}
.test-summary p {
  margin: 0.25rem 0;
}

/* Old search styles removed - now using modern styles above */

/* Reset button (progress page) */
.reset-btn {
  margin-top: 0.75rem;
  background-color: #e74c3c;
  color: #ffffff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.reset-btn:hover {
  opacity: 0.85;
}

/* Results table (progress page) */
.progress-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.progress-section th,
.progress-section td {
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
  text-align: left;
}
.progress-section th {
  background-color: #F0F9FF;
  color: #059669;
}

/* Progress summaries layout */
#progress-summary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.progress-section h2 {
  margin-top: 0;
  margin-left: 0.5rem;
}
.progress-section {
  width: 100%;
  box-sizing: border-box;
  padding-right: 1rem;
  padding-left: 0;
}

/* Programming test styles */
.test-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.test-options .btn {
  width: 100%;
  text-align: left;
}
.language-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.lang-card {
  background-color: #ffffff;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  padding: 1rem;
  flex: 1 1 calc(33.333% - 1rem);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}
.lang-card h4 {
  margin: 0 0 0.5rem;
  color: #059669;
  font-size: 1.1rem;
}
.lang-card p {
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 0.75rem;
}

/* Summary list (programming test results) */
.summary-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}
.summary-list li {
  margin-bottom: 1rem;
  background-color: #f9fafb;
  padding: 0.75rem;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}
.summary-list li strong {
  color: #059669;
}
.summary-list li em {
  display: block;
  margin-top: 0.25rem;
  color: #555;
  font-style: italic;
}

/* Advice section styles */
.advice-image {
  width: 80px;
  float: left;
  margin: 0 1rem 1rem 0;
}
.advice-image-sm {
  width: 50px;
  float: left;
  margin: 0 0.5rem 0.5rem 0;
}
.advice-test::after {
  content: "";
  display: table;
  clear: both;
}
.advice-section h1 {
  color: #059669;
  margin-bottom: 1rem;
}
.performance-note em {
  color: #555;
}

/* Form and layout utilities */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.form-control,
.form-select,
input[type="text"],
input[type="number"],
textarea,
select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  color: #2c3e50;
  background-color: #fff;
  border: 1px solid #b3c2d1;
  border-radius: 4px;
}
.mt-4 {
  margin-top: 1.5rem !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.ml-2 {
  margin-left: 0.5rem !important;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .nav-container {
    gap: 1rem;
  }
  
  .main-nav {
    display: none;
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .action-btn span {
    display: none;
  }
  
  .action-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.625rem 0.875rem;
    gap: 0.5rem;
  }
  
  .brand-text {
    display: none;
  }
  
  .navbar .site-logo {
    height: 2.25rem;
  }
  
  /* Hide quick access labels on mobile */
  .quick-label {
    display: none;
  }
  
  .quick-access-icons {
    margin-right: 0.5rem;
    padding-right: 0.5rem;
    gap: 0.125rem;
  }
  
  .quick-icon {
    padding: 0.375rem;
  }
  
  .quick-icon svg {
    width: 16px;
    height: 16px;
  }
  
  /* Smaller buttons on mobile */
  .pricing-btn span,
  .login-btn span {
    display: none;
  }
  
  .pricing-btn,
  .login-btn {
    padding: 0.5rem;
    border-radius: 10px;
  }
  
  .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  
  .main-layout {
    flex-direction: column;
    padding: 0 1rem;
  }
  
  .side-nav {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 1.5rem;
    position: static;
  }
}
@media (max-width: 1400px) {
  .hero .hero-content {
    padding: 0 3rem;
  }
  .infographic-section, .tests, .features {
    padding: 0 2.5rem;
  }
}

@media (max-width: 1200px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .features .feature-link:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 60%;
  }
  /* Adjust grid columns for smaller screens */
  .test-category:nth-of-type(1) .tests-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .test-category:nth-of-type(2) .tests-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }
  .test-category:nth-of-type(3) .tests-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .tests-grid {
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: 600px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .infographic-header h2 {
    font-size: 2.5rem;
  }
  .tests h2 {
    font-size: 2.5rem;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .features .feature-link:nth-child(3) {
    grid-column: 1;
    max-width: 100%;
  }
  /* All test grids become 2 columns on tablet */
  .tests-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }
  .test-category:nth-of-type(1) .tests-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }
  .test-category:nth-of-type(3) .tests-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }
  .test-category:nth-of-type(4) .tests-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }
  .test-category-header h3 {
    font-size: 1.3rem;
  }
  .category-description {
    font-size: 0.95rem;
  }
  .test-item {
    padding: 1.25rem;
  }
  .test-item h3 {
    font-size: 1.15rem;
  }
  .test-item p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
    border-radius: 0 0 16px 16px;
  }
  .hero .hero-content {
    padding: 0 2rem;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
  .infographic-header h2 {
    font-size: 2rem;
  }
  .infographic-intro {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  .infographic-section, .tests, .features {
    margin: 4rem auto;
    padding: 0 1.5rem;
  }
  .tests h2 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
  }
  .tests-grid {
    grid-template-columns: 1fr !important;
    gap: 1.618rem;
  }
  .test-category:nth-of-type(1) .tests-grid {
    grid-template-columns: 1fr !important;
    gap: 1.618rem;
  }
  .test-category {
    margin-bottom: 3.5rem;
  }
  .test-category-header {
    margin-bottom: 1.75rem;
  }
  .test-category-header h3 {
    font-size: 1.2rem;
  }
  .test-item {
    padding: 1.25rem;
  }
  .test-item img {
    height: 100px;
  }
  .test-item .programming-icon {
    height: 100px;
    padding: 0.8rem;
  }
  .test-item h3 {
    font-size: 1.1rem;
  }
  .test-item p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .test-category:nth-of-type(2) .tests-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.618rem;
  }
  .test-category:nth-of-type(3) .test-item {
    max-width: 100%;
  }
  .test-category:nth-of-type(4) .tests-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.618rem;
  }
}

@media (max-width: 992px) {
  .infographic-container {
    padding: 3rem 2.5rem;
  }
  
  .infographic-header h2 {
    font-size: 2.25rem;
  }
  
  .infographic-intro {
    font-size: 1.1rem;
  }
  
  .infographic-image-wrapper {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .infographic-section {
    margin: 4rem auto;
    padding: 0 1.5rem;
  }
  
  .infographic-container {
    padding: 2.5rem 2rem;
    border-radius: 16px;
  }
  
  .infographic-header {
    margin-bottom: 2.5rem;
  }
  
  .infographic-header h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }
  
  .infographic-intro {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  
  .infographic-image-wrapper {
    padding: 1.25rem;
    border-radius: 12px;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 450px;
    border-radius: 12px;
    margin-bottom: 3rem;
  }
  
  .hero .hero-content {
    margin: 2.5rem 0 2.5rem 2rem;
    padding: 2rem 1.75rem;
    max-width: calc(100% - 4rem);
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.6);
  }
  
  .hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.6);
  }
  
  .hero::before {
    background: linear-gradient(90deg, rgba(248, 187, 217, 0.3) 0%, rgba(181, 244, 230, 0.2) 30%, rgba(197, 232, 245, 0.2) 60%, rgba(212, 197, 249, 0.2) 90%, transparent 100%);
  }
  
  .infographic-section {
    margin: 3rem auto;
    padding: 0 1rem;
  }
  
  .infographic-container {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  
  .infographic-header {
    margin-bottom: 2rem;
  }
  
  .infographic-header h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .infographic-intro {
    font-size: 1rem;
    line-height: 1.65;
  }
  
  .infographic-image-wrapper {
    padding: 1rem;
    border-radius: 10px;
  }
  
  .navbar .brand img,
  .navbar .brand .site-logo {
    height: 3.5rem;
    max-width: 180px;
  }
}

/* Additional custom styles (placeholders for removed content) */
/* ... The remainder of the original style definitions remain unchanged ... */

/* --------------------------------------------------------------------
 * Advanced Spatial Test Global Styles - Standardized sizes and margins
 *
 * These rules provide consistent sizing and margins for the main figure
 * and answer options on the advanced spatial reasoning test. They are
 * scoped by ID selectors so that other tests on the portal are unaffected.
 */
#main-image {
  display: block;
  margin: 0 auto 2rem auto;
  max-width: 500px;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
}
#main-image svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
}
#options-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  justify-items: center;
  margin: 0 auto 2rem auto;
  max-width: 700px;
  padding: 0 1rem;
}
@media (max-width: 768px) {
  #options-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
.option-button {
  width: 160px;
  height: 160px;
  min-width: 160px;
  min-height: 160px;
  padding: 0.75rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.option-button:hover {
  border-color: #D4C5F9;
  background: #F0F9FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 197, 249, 0.2);
}
.option-button svg {
  max-width: 140px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.option-button.selected {
  border-color: #059669;
  background: linear-gradient(135deg, 
    rgba(197, 232, 245, 0.90) 0%, 
    rgba(212, 197, 249, 0.85) 50%, 
    rgba(155, 181, 206, 0.95) 100%),
    linear-gradient(135deg, #C5E8F5 0%, #D4C5F9 50%, #9BB5CE 100%);
  background-blend-mode: overlay, normal;
  position: relative;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.4);
}

.option-button.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.12) 0%, 
    rgba(0, 0, 0, 0.10) 50%, 
    rgba(0, 0, 0, 0.18) 100%);
  border-radius: 8px;
  pointer-events: none;
  z-index: 0;
}

.option-button.selected > * {
  position: relative;
  z-index: 1;
}

.option-button.correct {
  border-color: #D4C5F9;
  background: linear-gradient(135deg, 
    rgba(181, 244, 230, 0.90) 0%, 
    rgba(197, 232, 245, 0.85) 50%, 
    rgba(212, 197, 249, 0.90) 100%),
    linear-gradient(135deg, #B5F4E6 0%, #C5E8F5 50%, #D4C5F9 100%);
  background-blend-mode: overlay, normal;
  position: relative;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.4);
}

.option-button.correct::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.12) 0%, 
    rgba(0, 0, 0, 0.10) 50%, 
    rgba(0, 0, 0, 0.15) 100%);
  border-radius: 8px;
  pointer-events: none;
  z-index: 0;
}

.option-button.correct > * {
  position: relative;
  z-index: 1;
}
.option-button.incorrect {
  border-color: #e74c3c;
  background: #e74c3c;
  color: #ffffff;
}
.question-container .controls {
  margin-top: 1.5rem;
}
/* End of Advanced Spatial Test Global Styles */

/* About Page - Elegant Layout with Images */
.about-intro {
  max-width: 900px;
  margin: 0 auto 4.236rem;
  padding: 0 1.618rem;
  text-align: center;
}

.about-intro h1 {
  color: #059669;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-intro p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #2c3e50;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.about-section:hover {
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.12);
}

/* Alternating layout: odd sections have image on right, even on left */
.about-section:nth-child(odd) {
  grid-template-columns: 1.4fr 1fr;
}

.about-section:nth-child(even) {
  grid-template-columns: 1fr 1.4fr;
}

.about-section:nth-child(even) .about-text {
  order: 2;
}

.about-section:nth-child(even) img {
  order: 1;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h2 {
  color: #059669;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text a {
  color: #059669;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.about-text a:hover {
  border-bottom-color: #059669;
}

/* Test Links Section */
.test-links {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e6ed;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.test-links-label {
  font-weight: 600;
  color: #059669;
  font-size: 0.95rem;
  margin-right: 0.25rem;
}

.test-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #F0F9FF;
  color: #059669;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.test-link:hover {
  background: linear-gradient(135deg, #C5E8F5 0%, #D4C5F9 50%, #9BB5CE 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.2);
  border-color: #059669;
}

.about-section img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #f8f9fa;
  padding: 0.5rem;
}

.about-section img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(15, 76, 129, 0.15);
}

/* Varied image container sizes for visual interest - using min-height to ensure full images are shown */
.about-section:nth-child(1) img {
  min-height: 280px;
  max-height: 400px;
}

.about-section:nth-child(2) img {
  min-height: 300px;
  max-height: 420px;
}

.about-section:nth-child(3) img {
  min-height: 260px;
  max-height: 380px;
}

.about-section:nth-child(4) img {
  min-height: 290px;
  max-height: 400px;
}

.about-section:nth-child(5) img {
  min-height: 300px;
  max-height: 410px;
}

.about-section:nth-child(6) img {
  min-height: 280px;
  max-height: 400px;
}

.about-section:nth-child(7) img {
  min-height: 270px;
  max-height: 390px;
}

.about-section:nth-child(8) img {
  min-height: 290px;
  max-height: 400px;
}

.about-section:nth-child(9) img {
  min-height: 280px;
  max-height: 400px;
}

/* Proof and References Section */
.about-proof {
  max-width: 900px;
  margin: 4rem auto 2rem;
  padding: 2.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about-proof h2 {
  color: #059669;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-proof h3 {
  color: #059669;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-proof p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 1.25rem;
}

.references-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.references-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.references-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 600;
}

.references-list a {
  color: #059669;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.references-list a:hover {
  border-bottom-color: #059669;
}

/* Responsive Design for About Page */
@media (max-width: 968px) {
  .about-section:nth-child(odd),
  .about-section:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .about-section:nth-child(even) .about-text,
  .about-section:nth-child(even) img {
    order: unset;
  }

  .about-section img {
    min-height: unset !important;
    max-height: none !important;
    margin-top: 1.5rem;
  }

  .about-intro h1 {
    font-size: 2rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .about-section {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .about-intro {
    margin-bottom: 2rem;
  }

  .about-intro h1 {
    font-size: 1.75rem;
  }

  .about-intro p {
    font-size: 1rem;
  }

  .about-text h2 {
    font-size: 1.35rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-section img {
    min-height: unset !important;
    max-height: none !important;
  }

  .test-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .test-links-label {
    margin-bottom: 0.25rem;
  }

  .about-proof {
    padding: 1.5rem;
    margin-top: 2.5rem;
  }

  .about-proof h2 {
    font-size: 1.75rem;
  }

  .about-proof h3 {
    font-size: 1.35rem;
  }
}

/* ========================================================================
   NUMERICAL TEST SUMMARY PAGE STYLES
   ======================================================================== */

/* Responsive grid for performance cards */
@media (max-width: 768px) {
  #performance-overview {
    grid-template-columns: 1fr !important;
  }
  
  .test-section {
    padding: 1rem !important;
  }
}

@media (max-width: 640px) {
  /* Stack answer sections vertically on mobile */
  #detailed-review > div > div:has(.answer-section) {
    grid-template-columns: 1fr !important;
  }
  
  /* Adjust button spacing */
  .test-section > div:last-child {
    flex-direction: column !important;
  }
  
  .test-section > div:last-child > a {
    width: 100%;
    justify-content: center !important;
  }
}
/* ========================================================================
   INDEX PAGE WITH SIDEBAR LAYOUT
   ======================================================================== */

/* Index page specific adjustments when sidebar is present */
.main-layout.index-page {
  gap: 3.5rem;
  padding: 0 1.5rem 0 0;
  align-items: flex-start;
}

/* Sidebar scrolls naturally with page - no sticky positioning */
.main-layout.index-page .side-nav {
  position: relative;
  height: auto;
  overflow: visible;
  z-index: 10;
  margin-left: 0;
  flex-shrink: 0;
}

.main-layout.index-page .content {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  padding-right: 1rem;
}

/* ========================================================================
   INDEX PAGE HERO VIDEO STYLES
   ======================================================================== */

/* Hero Video Section for Index Page - Compact and elegant */
.index-hero-video {
  position: relative;
  width: calc(100% + 2rem);
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
}

.index-hero-video .hero-video-container {
  position: relative;
  width: 100%;
  max-height: 55vh;
  overflow: hidden;
}

.index-hero-video .hero-video {
  width: 100%;
  height: auto;
  min-height: 45vh;
  max-height: 55vh;
  object-fit: cover;
  display: block;
}

.index-hero-video .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.7) 0%, rgba(30, 64, 115, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-hero-video .hero-content {
  text-align: center;
  color: #fff;
  padding: 1.5rem 2rem;
  max-width: 700px;
}

.index-hero-video .hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: heroFadeIn 0.6s ease-out;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.index-hero-video .hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 1.75rem;
  opacity: 0.92;
  animation: heroFadeIn 0.6s ease-out 0.15s both;
  line-height: 1.5;
}

.index-hero-video .hero-cta {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  background: #fff;
  color: #059669;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: heroFadeIn 0.6s ease-out 0.3s both;
}

.index-hero-video .hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: #f0fdf4;
}

/* Hero animation */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================================
   MODERN ABOUT PAGE STYLES
   ======================================================================== */

/* About Page Infographic Hero */
.about-infographic-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 30%, #f0f9ff 70%, #f5f3ff 100%);
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.about-infographic-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.infographic-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.infographic-content {
  position: relative;
  z-index: 1;
}

.infographic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.infographic-badge svg {
  width: 18px;
  height: 18px;
}

.infographic-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.infographic-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.infographic-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.infographic-cta {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.infographic-cta.primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}

.infographic-cta.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.4);
}

.infographic-cta.secondary {
  background: #fff;
  color: #047857;
  border: 2px solid #047857;
}

.infographic-cta.secondary:hover {
  background: #047857;
  color: #fff;
}

.infographic-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infographic-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  animation: floatImage 6s ease-in-out infinite;
}

.infographic-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(5, 150, 105, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

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

/* Professions Section */
.professions-section {
  padding: 5rem 1.5rem;
  background: #fff;
}

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

.professions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.profession-card {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.profession-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(5, 150, 105, 0.12);
  border-color: #059669;
}

.profession-image-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(15, 76, 129, 0.1) 100%);
  border-radius: 50%;
  overflow: hidden;
}

.profession-image-wrapper img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.profession-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.profession-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* About Page Journey Section - Compact */
.about-journey-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

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

.journey-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

a.journey-step-compact {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
  display: block;
  cursor: pointer;
  overflow: hidden;
}

a.journey-step-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  transition: height 0.3s ease;
}

/* Color variants */
a.journey-step-compact[data-color="indigo"] { border-color: rgba(99, 102, 241, 0.2); }
a.journey-step-compact[data-color="indigo"]::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
a.journey-step-compact[data-color="indigo"] .step-icon-compact { background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.1)); color: #6366f1; }
a.journey-step-compact[data-color="indigo"] .step-num { background: linear-gradient(135deg, #6366f1, #818cf8); }
a.journey-step-compact[data-color="indigo"]:hover { border-color: #6366f1; box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2); }

a.journey-step-compact[data-color="purple"] { border-color: rgba(139, 92, 246, 0.2); }
a.journey-step-compact[data-color="purple"]::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
a.journey-step-compact[data-color="purple"] .step-icon-compact { background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.1)); color: #8b5cf6; }
a.journey-step-compact[data-color="purple"] .step-num { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
a.journey-step-compact[data-color="purple"]:hover { border-color: #8b5cf6; box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2); }

a.journey-step-compact[data-color="blue"] { border-color: rgba(59, 130, 246, 0.2); }
a.journey-step-compact[data-color="blue"]::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
a.journey-step-compact[data-color="blue"] .step-icon-compact { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.1)); color: #3b82f6; }
a.journey-step-compact[data-color="blue"] .step-num { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
a.journey-step-compact[data-color="blue"]:hover { border-color: #3b82f6; box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2); }

a.journey-step-compact[data-color="teal"] { border-color: rgba(20, 184, 166, 0.2); }
a.journey-step-compact[data-color="teal"]::before { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
a.journey-step-compact[data-color="teal"] .step-icon-compact { background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(45, 212, 191, 0.1)); color: #14b8a6; }
a.journey-step-compact[data-color="teal"] .step-num { background: linear-gradient(135deg, #14b8a6, #2dd4bf); }
a.journey-step-compact[data-color="teal"]:hover { border-color: #14b8a6; box-shadow: 0 12px 40px rgba(20, 184, 166, 0.2); }

a.journey-step-compact[data-color="orange"] { border-color: rgba(249, 115, 22, 0.2); }
a.journey-step-compact[data-color="orange"]::before { background: linear-gradient(90deg, #f97316, #fb923c); }
a.journey-step-compact[data-color="orange"] .step-icon-compact { background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 146, 60, 0.1)); color: #f97316; }
a.journey-step-compact[data-color="orange"] .step-num { background: linear-gradient(135deg, #f97316, #fb923c); }
a.journey-step-compact[data-color="orange"]:hover { border-color: #f97316; box-shadow: 0 12px 40px rgba(249, 115, 22, 0.2); }

a.journey-step-compact[data-color="pink"] { border-color: rgba(236, 72, 153, 0.2); }
a.journey-step-compact[data-color="pink"]::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
a.journey-step-compact[data-color="pink"] .step-icon-compact { background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(244, 114, 182, 0.1)); color: #ec4899; }
a.journey-step-compact[data-color="pink"] .step-num { background: linear-gradient(135deg, #ec4899, #f472b6); }
a.journey-step-compact[data-color="pink"]:hover { border-color: #ec4899; box-shadow: 0 12px 40px rgba(236, 72, 153, 0.2); }

a.journey-step-compact[data-color="cyan"] { border-color: rgba(6, 182, 212, 0.2); }
a.journey-step-compact[data-color="cyan"]::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
a.journey-step-compact[data-color="cyan"] .step-icon-compact { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(34, 211, 238, 0.1)); color: #06b6d4; }
a.journey-step-compact[data-color="cyan"] .step-num { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
a.journey-step-compact[data-color="cyan"]:hover { border-color: #06b6d4; box-shadow: 0 12px 40px rgba(6, 182, 212, 0.2); }

a.journey-step-compact[data-color="emerald"] { border-color: rgba(16, 185, 129, 0.2); }
a.journey-step-compact[data-color="emerald"]::before { background: linear-gradient(90deg, #10b981, #34d399); }
a.journey-step-compact[data-color="emerald"]:hover { border-color: #10b981; box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25); }

a.journey-step-compact:hover {
  transform: translateY(-6px);
}

a.journey-step-compact:hover::before {
  height: 6px;
}

a.journey-step-compact .step-icon-compact {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

a.journey-step-compact:hover .step-icon-compact {
  transform: scale(1.1);
}

a.journey-step-compact.success .step-icon-compact {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

a.journey-step-compact .step-num {
  position: absolute;
  top: -10px;
  right: 15px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

a.journey-step-compact h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}

a.journey-step-compact p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Hero Video Section */
.about-hero {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}

.hero-video-container {
  position: relative;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.7) 0%, rgba(15, 76, 129, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #fff;
  color: #059669;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #C5E8F5 0%, #D4C5F9 50%, #9BB5CE 100%);
  color: #fff;
}

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

/* Mission Section */
.about-mission {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  padding: 5rem 1.5rem;
}

.mission-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.mission-badge svg {
  width: 18px;
  height: 18px;
}

.mission-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.mission-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #4a5568;
}

/* Section Titles (Shared) */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a202c;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Journey Timeline Section */
.journey-section {
  padding: 5rem 1.5rem;
  background: #fff;
}

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

.journey-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.journey-step {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.journey-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(5, 150, 105, 0.15);
  border-color: #059669;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(135deg, #059669 0%, #0f4c81 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(15, 76, 129, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #059669;
}

.step-icon.success-icon {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.step-description {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.step-description strong {
  color: #059669;
}

.step-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  background: #f0fdf4;
  color: #059669;
  border-radius: 20px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.feature-tag.success-tag {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  border: none;
}

.journey-step-final {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #059669;
}

/* Features Grid Section */
.features-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(5, 150, 105, 0.12);
  border-color: #059669;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
}

.feature-icon-wrapper.numerical { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.feature-icon-wrapper.verbal { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.feature-icon-wrapper.spatial { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.feature-icon-wrapper.inductive { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.feature-icon-wrapper.critical { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.feature-icon-wrapper.personality { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.feature-icon-wrapper.sjt { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.feature-icon-wrapper.programming { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.feature-link {
  display: inline-block;
  color: #047857;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.feature-link:hover {
  color: #065f46;
  transform: translateX(3px);
}

/* Industries Section */
.industries-section {
  padding: 5rem 1.5rem;
  background: #fff;
}

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

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(5, 150, 105, 0.1);
  border-color: #059669;
}

.industry-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(15, 76, 129, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #059669;
}

.industry-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.industry-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

/* Stats Section */
.stats-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #059669 0%, #0f4c81 100%);
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  color: #fff;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Why Section */
.why-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.why-container {
  max-width: 1000px;
  margin: 0 auto;
}

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

.why-card {
  text-align: center;
  padding: 2rem;
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(15, 76, 129, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #059669;
}

.why-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

.research-references {
  background: #f8fafc;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.research-references h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

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

.references-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #059669;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.references-links a:hover {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.references-links a svg {
  flex-shrink: 0;
}

/* CTA Section */
.about-cta-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.15rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.4);
}

.cta-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #fff;
  color: #059669;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #059669;
}

.cta-secondary:hover {
  background: #059669;
  color: #fff;
}

/* About Page Responsive Styles */
@media (max-width: 1200px) {
  .journey-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .mission-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero-video-container {
    max-height: 60vh;
  }
  
  .hero-title {
    font-size: 1.875rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .about-mission {
    padding: 3rem 1rem;
  }
  
  .mission-title {
    font-size: 1.5rem;
  }
  
  .mission-text {
    font-size: 1rem;
  }
  
  .journey-section,
  .features-section,
  .industries-section,
  .why-section,
  .about-cta-section {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .journey-timeline {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .industries-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.875rem;
  }
  
  .cta-content h2 {
    font-size: 1.75rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .references-links {
    flex-direction: column;
  }
  
  .references-links a {
    width: 100%;
    justify-content: center;
  }
}

/* Index Hero Video Responsive */
@media (max-width: 968px) {
  .index-hero-video .hero-title {
    font-size: 2.75rem;
  }
  
  .index-hero-video .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 640px) {
  .index-hero-video .hero-video-container {
    max-height: 65vh;
  }
  
  .index-hero-video .hero-video {
    min-height: 50vh;
  }
  
  .index-hero-video .hero-title {
    font-size: 2rem;
  }
  
  .index-hero-video .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .index-hero-video .hero-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* About Infographic Hero Responsive */
@media (max-width: 968px) {
  .infographic-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .infographic-content {
    order: 2;
  }
  
  .infographic-image-wrapper {
    order: 1;
  }
  
  .infographic-title {
    font-size: 2.25rem;
  }
  
  .infographic-cta-group {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .about-infographic-hero {
    padding: 2.5rem 1rem 3rem;
  }
  
  .infographic-title {
    font-size: 1.75rem;
  }
  
  .infographic-subtitle {
    font-size: 1rem;
  }
  
  .infographic-cta-group {
    flex-direction: column;
    align-items: center;
  }
  
  .infographic-cta {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* Professions Section Responsive */
@media (max-width: 1024px) {
  .professions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .professions-section {
    padding: 3rem 1rem;
  }
  
  .professions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .profession-card {
    padding: 1rem;
  }
  
  .profession-image-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .profession-image-wrapper img {
    width: 36px;
    height: 36px;
  }
  
  .profession-card h3 {
    font-size: 0.95rem;
  }
  
  .profession-card p {
    font-size: 0.75rem;
  }
}

/* Journey Steps Compact Responsive */
@media (max-width: 1024px) {
  .journey-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .about-journey-section {
    padding: 3rem 1rem;
  }
  
  .journey-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  a.journey-step-compact {
    padding: 1.25rem 1rem;
  }
  
  a.journey-step-compact .step-icon-compact {
    width: 46px;
    height: 46px;
  }
  
  a.journey-step-compact h4 {
    font-size: 0.9rem;
  }
  
  a.journey-step-compact p {
    font-size: 0.8rem;
  }
}

/* ========================================================================
   INDEX PAGE WITH SIDEBAR - RESPONSIVE ADJUSTMENTS
   ======================================================================== */

/* When sidebar is present on index page, adjust content sections */
.main-layout.index-page .index-hero-video {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.main-layout.index-page .index-hero-video .hero-video-container {
  border-radius: 16px;
  max-height: 55vh;
}

.main-layout.index-page .index-hero-video .hero-title {
  font-size: 2.75rem;
}

.main-layout.index-page .index-hero-video .hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.main-layout.index-page .index-hero-video .hero-cta {
  padding: 0.95rem 2.5rem;
  font-size: 1rem;
}

/* Value props adjustments for sidebar layout */
.main-layout.index-page .value-props-modern {
  max-width: 100%;
  margin: 0 0 3rem 0;
  padding: 0;
}

.main-layout.index-page .value-props-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Tests section adjustments */
.main-layout.index-page .tests-modern {
  max-width: 100%;
  padding: 0;
  margin-bottom: 3rem;
}

.main-layout.index-page .tests-grid-modern {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Pro tools adjustments */
.main-layout.index-page .pro-tools-section {
  padding: 0;
  margin-bottom: 3rem;
}

.main-layout.index-page .pro-tools-container {
  max-width: 100%;
  padding: 0;
}

.main-layout.index-page .pro-tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Journey section adjustments */
.main-layout.index-page .journey-section {
  max-width: 100%;
  padding: 0;
  margin-bottom: 3rem;
}

.main-layout.index-page .journey-container {
  padding: 3rem 2.5rem;
}

/* Hide sidebar on smaller screens for index page */
@media (max-width: 1100px) {
  .main-layout.index-page .side-nav {
    display: none !important;
  }
  
  .main-layout.index-page .index-hero-video {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    border-radius: 0;
  }
  
  .main-layout.index-page .index-hero-video .hero-video-container {
    border-radius: 0;
    max-height: 70vh;
  }
  
  .main-layout.index-page .index-hero-video .hero-title {
    font-size: 3rem;
  }
}

/* End of Modern About Page Styles */