:root {
      --primary: #4361ee;
      --secondary: #3f37c9;
      --accent: #4cc9f0;
      --light: #f8f9fa;
      --dark: #212529;
      --gray: #6c757d;
      --light-gray: #e9ecef;
      --transition: all 0.3s ease;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      color: var(--dark);
      line-height: 1.6;
      background-color: #f7f9fc;
      overflow-x: hidden;
    }

    h1, h2, h3, h4, h5 {
      font-family: 'Playfair Display', serif;
      font-weight: 700;
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* Top Bar */
    .topbar {
      background: var(--light-gray);
      padding: 0.5rem 0;
      font-size: 0.875rem;
    }

    .topbar-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .social-links {
      display: flex;
      gap: 1rem;
    }

    .social-links a {
      color: var(--gray);
      transition: var(--transition);
    }

    .social-links a:hover {
      color: var(--primary);
    }

    /* Navbar */
    .navbar {
      padding: 1rem 0;
      position: sticky;
      top: 0;
      background: white;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .navbar-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .navbar-brand img {
      height: 75px;
    }

    .nav-menu {
      display: flex;
      list-style: none;
      gap: 0.75rem;
      margin: 0;
    }

    .nav-item {
      position: relative;
    }

    .nav-link {
      text-decoration: none;
      color: var(--dark);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.75rem;
      border-radius: 8px;
      transition: var(--transition);
      font-size: 0.95rem;
    }

    .nav-link i {
      font-size: 0.85rem;
      opacity: 0.8;
    }

    .nav-link:hover, .nav-link.active {
      background: rgba(67, 97, 238, 0.1);
      color: var(--primary);
    }

    .nav-link:hover i, .nav-link.active i {
      opacity: 1;
    }

    .mobile-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--dark);
    }

    /* Hero Section */
    .page-header {
      background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
      color: white;
      padding: 3rem 0;
      text-align: center;
    }

    .page-header h1 {
      font-size: 2.25rem;
      margin-bottom: 0.5rem;
    }

    .page-header p {
      opacity: 0.9;
      max-width: 700px;
      margin: 0 auto;
    }

    /* Tests Grid */
    .tests-section {
      padding: 3rem 0 4rem;
    }

    .tests-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 2rem;
    }

    .test-card {
      background: white;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0,0,0,0.06);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .test-card:hover {
      transform: translateY(-6px) scale(1.01);
      box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    }

    .card-img-top {
      height: 200px;
      object-fit: cover;
      width: 100%;
    }

    .card-body {
      padding: 1.25rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .card-title {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--secondary);
    }

    .card-text {
      font-size: 0.95rem;
      color: var(--gray);
      line-height: 1.5;
      margin-bottom: 1rem;
      flex-grow: 1;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.625rem 1.25rem;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      transition: var(--transition);
      font-size: 0.9rem;
      text-align: center;
    }

    .btn-primary {
      background: var(--primary);
      color: white;
      border: none;
    }

    .btn-primary:hover {
      background: var(--secondary);
      transform: translateY(-2px);
    }

    /* Footer */
    .footer {
      background: var(--dark);
      color: white;
      padding: 3rem 0 1.5rem;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .footer-col h4 {
      margin-bottom: 1.25rem;
      position: relative;
      padding-bottom: 0.5rem;
      font-size: 1.2rem;
    }

    .footer-col h4::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 40px;
      height: 2px;
      background: var(--accent);
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 0.5rem;
    }

    .footer-links a {
      color: #adb5bd;
      text-decoration: none;
      transition: var(--transition);
      font-size: 0.9rem;
    }

    .footer-links a:hover {
      color: white;
      padding-left: 3px;
    }

    .contact-info {
      list-style: none;
    }

    .contact-info li {
      display: flex;
      margin-bottom: 0.75rem;
      font-size: 0.9rem;
    }

    .contact-info i {
      margin-right: 0.75rem;
      color: var(--accent);
      min-width: 18px;
    }

    .social-footer {
      display: flex;
      gap: 0.75rem;
      margin-top: 1rem;
    }

    .social-footer a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      color: white;
      transition: var(--transition);
      font-size: 0.8rem;
    }

    .social-footer a:hover {
      background: var(--primary);
      transform: translateY(-2px);
    }

    .copyright {
      text-align: center;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(255,255,255,0.1);
      color: #adb5bd;
      font-size: 0.85rem;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .mobile-toggle {
        display: block;
      }

      .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        gap: 0.5rem;
      }

      .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
      }

      .nav-link {
        padding: 0.75rem;
        justify-content: flex-start;
      }

      .page-header {
        padding: 2rem 0;
      }

      .page-header h1 {
        font-size: 1.75rem;
      }

      .tests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }
    }

    @media (max-width: 480px) {
      .page-header h1 {
        font-size: 1.5rem;
      }
      
      .page-header p {
        font-size: 0.9rem;
      }
      
      .card-title {
        font-size: 1rem;
      }
      
      .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
      }
    }
	
	.d-none { display: none; }
	
	/* Question content styling */
.question-image-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.question-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 400px;
  object-fit: contain;
}

.question-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #2d3748;
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: rgba(67, 97, 238, 0.03);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

/* Options grid layout */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

/* Option card styling */
.option-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: left;
  min-height: 80px;
  position: relative;
  overflow: hidden;
}

.option-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 15px rgba(67, 97, 238, 0.12);
}

.option-card.selected {
  border-color: var(--primary);
  background: rgba(67, 97, 238, 0.08);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.option-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.25s;
}

.option-card.selected::after {
  opacity: 1;
}

/* Option components */
.option-marker {
  min-width: 32px;
  height: 32px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--gray);
  transition: all 0.25s;
}

.option-card.selected .option-marker {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.option-letter {
  font-size: 0.95rem;
}

.option-content {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #2d3748;
  transition: color 0.25s;
}

.option-card.selected .option-content {
  color: var(--secondary);
  font-weight: 500;
}

.option-selection {
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.25s;
}

.option-card.selected .option-selection {
  opacity: 1;
  transform: scale(1.2);
}

.selection-icon {
  color: var(--primary);
  font-size: 0.9rem;
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--light-gray);
  flex-wrap: wrap;
  gap: 1rem;
}

.test-header h1 {
  font-size: 2.25rem;
  margin: 0;
  color: var(--secondary);
  font-weight: 700;
}

.timer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}

.timer-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
}

.timer-badge i {
  font-size: 1.25rem;
  color: var(--accent);
  z-index: 1;
  animation: pulse 2s infinite;
}

.timer-badge span {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: white;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Pulse animation for stopwatch icon */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .question-text {
    font-size: 1.05rem;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .test-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .test-header h1 {
    font-size: 1.75rem;
  }
  
  .timer-badge {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 1.25rem;
  }
  
  .timer-badge span {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .test-header h1 {
    font-size: 1.5rem;
  }
  
  .timer-badge {
    padding: 0.5rem 1rem;
    min-width: auto;
  }
  
  .timer-badge span {
    font-size: 1.1rem;
  }
  
  .timer-badge i {
    font-size: 1rem;
  }
}

.assessment-progress {
  width: 100%;
  margin: 1.75rem 0 2.5rem;
  padding: 0.25rem 0;
}

.progress-track {
  height: 10px;
  background: linear-gradient(to right, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.3) 50%,
    transparent 100%
  );
  transform: rotate(30deg);
  animation: progressShine 3s infinite;
}

@keyframes progressShine {
  0% { transform: rotate(30deg) translateX(-100%); }
  100% { transform: rotate(30deg) translateX(100%); }
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 500;
}

.progress-text { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem;
}

.progress-text::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.progress-percent {
  background: rgba(67, 97, 238, 0.1);
  color: var(--secondary);
  padding: 0.125rem 0.625rem;
  border-radius: 20px;
  font-weight: 600;
  min-width: 48px;
  text-align: center;
}

@keyframes pulseCompletion {
  0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(67, 97, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

.result-section {
  padding: 3rem 0;
  width: 100%;
}

.result-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  padding: 2.5rem;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.completion-badge {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.completion-badge h2 {
  font-size: 2.1rem;
  color: var(--secondary);
  margin-top: 0.75rem;
  letter-spacing: -0.5px;
}

.completion-badge i {
  font-size: 3.5rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  width: 85px;
  height: 85px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  animation: pulseCelebration 2s infinite;
}

@keyframes pulseCelebration {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.metrics-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.metric-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(248, 249, 250, 0.7);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  align-items: flex-start;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(67, 97, 238, 0.2);
}

.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.metric-icon.time { background: rgba(76, 201, 240, 0.15); color: var(--accent); }
.metric-icon.correct { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.metric-icon.score { 
  background: linear-gradient(135deg, rgba(67,97,238,0.15) 0%, rgba(63,55,201,0.15) 100%); 
  color: var(--primary); 
}

.metric-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.35rem;
}

.metric-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
}

.metric-value.score-percent {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.1rem;
  position: relative;
  display: inline-block;
}

.metric-value.score-percent::after {
  content: '%';
  font-size: 1.4rem;
  position: absolute;
  top: -0.3rem;
  right: -0.8rem;
}

/* Assessment insight section */
.assessment-insight {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.04) 0%, rgba(248, 249, 250, 0.9) 100%);
  border-radius: 18px;
  padding: 2rem;
  margin: 2.25rem 0;
  border: 1px solid rgba(67, 97, 238, 0.12);
  position: relative;
  overflow: hidden;
}

.assessment-insight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(67,97,238,0.03) 0%, transparent 70%);
  z-index: 0;
}

.insight-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.insight-header i {
  font-size: 1.8rem;
  color: var(--primary);
  background: rgba(67, 97, 238, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-header h3 {
  font-size: 1.75rem;
  color: var(--secondary);
  margin: 0;
}

.insight-content {
  line-height: 1.75;
  color: var(--dark);
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0 12px 12px 0;
}

/* Action button - prominent and inviting */
.result-actions {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--light-gray);
}

.btn-result {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  padding: 0.95rem 2.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  min-width: 260px;
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(63, 55, 201, 0.45);
}

.btn-result::after {
  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.7s;
  z-index: -1;
}

.btn-result:hover::after {
  left: 100%;
}

.btn-result i {
  margin-left: 0.6rem;
  transition: transform 0.3s ease;
}

.btn-result:hover i {
  transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .result-card {
    padding: 1.8rem;
    border-radius: 18px;
  }
  
  .completion-badge h2 {
    font-size: 1.8rem;
  }
  
  .completion-badge i {
    width: 70px;
    height: 70px;
    font-size: 2.8rem;
  }
  
  .metrics-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .metric-value {
    font-size: 1.65rem;
  }
  
  .metric-value.score-percent {
    font-size: 1.9rem;
  }
  
  .assessment-insight {
    padding: 1.75rem;
    margin: 1.75rem 0;
  }
  
  .insight-header h3 {
    font-size: 1.55rem;
  }
  
  .insight-content {
    font-size: 1.05rem;
    padding-left: 1.2rem;
  }
  
  .btn-result {
    min-width: 100%;
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .result-section {
    padding: 1.8rem 0;
  }
  
  .result-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .completion-badge i {
    width: 60px;
    height: 60px;
    font-size: 2.4rem;
  }
  
  .completion-badge h2 {
    font-size: 1.65rem;
    margin-top: 0.5rem;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .metric-value.score-percent {
    font-size: 1.75rem;
  }
  
  .btn-result {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    min-width: auto;
  }
}