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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #2c3e50;
  min-height: 100vh;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 50px;
  background: linear-gradient(135deg, #4A90E2 0%, #0052A3 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4A90E2 0%, #0052A3 100%);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-text {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.account-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  object-fit: cover;
  object-position: center;
}

.account-icon:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

/* Navigation Bar */
.nav-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #fff;
  padding: 20px;
  gap: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  color: #4A90E2;
  cursor: pointer;
  text-decoration: none;
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  transition: all 0.3s ease;
  font-weight: 600;
  border-radius: 8px;
}

.nav-item:hover {
  background-color: #f0f4ff;
  color: #0052A3;
}

.nav-divider {
  width: 1px;
  height: 25px;
  background-color: #e0e0e0;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin: 20px 0;
  color: #2c3e50;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: #2c3e50;
}

/* Home Page Specific */
.intro-section {
  text-align: center;
  margin: 20px 0;
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.intro-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: 700;
}

.intro-list {
  font-size: 18px;
  text-align: center;
  margin: 0 auto;
  line-height: 1.9;
  color: #2c3e50;
  list-style-position: inside;
}

.intro-list li {
  margin-bottom: 12px;
  font-weight: 500;
}

.steps-container {
  display: flex;
  justify-content: space-around;
  gap: 25px;
  margin: 50px 0;
}

.step-box {
  flex: 1;
  background: linear-gradient(135deg, #4A90E2 0%, #0052A3 100%);
  color: #fff;
  padding: 50px 30px;
  text-align: center;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.step-clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-clickable:hover:not(.disabled) {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #0052A3 0%, #4A90E2 100%);
}

.step-clickable.disabled {
  background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-clickable.highlight {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 15px 40px rgba(245, 87, 108, 0.4);
}

.step-clickable.highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(245, 87, 108, 0.5);
}

/* Content Sections */
.content-text {
  font-size: 18px;
  line-height: 1.8;
  margin: 20px 0;
  color: #2c3e50;
  width: 100%;
}

.content-list {
  font-size: 18px;
  line-height: 1.9;
  margin-left: 40px;
  margin-top: 15px;
  color: #2c3e50;
}

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

.image-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  gap: 30px;
  width: 100%;
}

.image-wrapper {
  text-align: center;
}

.image-wrapper img {
  max-width: 350px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.image-wrapper img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.image-label {
  font-size: 18px;
  margin-top: 15px;
  font-weight: 700;
  color: #2c3e50;
}

/* Option A/B for Step 2 */
.options-container {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin: 40px 0;
  width: 100%;
}

.option {
  flex: 1;
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.option-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #4A90E2;
}

.option img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.option img:hover {
  transform: scale(1.05);
}

/* Certificate Page */
.certificate-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin: 40px 0;
  perspective: 1000px;
}

.certificate-box {
  width: 900px;
  height: 600px;
  background: linear-gradient(135deg, #fff9f0 0%, #fffbf5 100%);
  border: 4px solid #4A90E2;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255,255,255,0.6);
  overflow: hidden;
}

.certificate-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(102, 126, 234, 0.02) 2px, rgba(102, 126, 234, 0.02) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(102, 126, 234, 0.02) 2px, rgba(102, 126, 234, 0.02) 4px);
  pointer-events: none;
}

.certificate-ornament-top {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  color: #4A90E2;
  opacity: 0.6;
  z-index: 10;
}

.certificate-ornament-bottom {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  color: #4A90E2;
  opacity: 0.6;
  z-index: 10;
}

.certificate-divider-top {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #4A90E2 50%, transparent 100%);
  margin: 15px auto;
  width: 60%;
}

.certificate-divider-bottom {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #0052A3 50%, transparent 100%);
  margin: 15px auto;
  width: 60%;
}

.certificate-divider {
  position: absolute;
  top: 80px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4A90E2, transparent);
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  border-top: 2px solid #e0e0e0;
  background-color: #fff;
  gap: 20px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.nav-button {
  background: linear-gradient(135deg, #4A90E2 0%, #0052A3 100%);
  color: #fff;
  border: none;
  padding: 14px 35px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Segoe UI', Arial, sans-serif;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.nav-button:active {
  transform: translateY(-1px);
}

.nav-button-spacer {
  flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }

  .logo-text {
    font-size: 24px;
  }

  .main-content {
    padding: 20px;
  }

  .title {
    font-size: 28px;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-box {
    min-height: 120px;
    font-size: 22px;
  }

  .image-container {
    flex-direction: column;
  }

  .image-wrapper img {
    max-width: 100%;
  }

  .options-container {
    flex-direction: column;
  }

  .certificate-box {
    width: 100%;
    height: 300px;
  }
}

/* Print Styles */
@media print {
  body {
    background: #fff;
  }

  .header,
  .nav-bar,
  .footer-nav,
  .nav-button,
  .main-content > h2,
  .main-content > div:not(.certificate-container) {
    display: none !important;
  }

  .container {
    background: #fff;
  }

  .main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
  }

  .certificate-container {
    margin: 0;
    width: 100%;
  }

  .certificate-box {
    width: 95%;
    max-width: 900px;
    height: 600px;
    border: 4px solid #4A90E2;
    box-shadow: 0 0 0 1px #000;
  }

  .certificate-box div {
    padding: 50px 40px;
  }

  .certificate-box p {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  @page {
    size: letter;
    margin: 0;
  }
}

/* Quiz Modal Styles */
@keyframes celebrateIn {
  0% {
    transform: scale(0.8) rotateX(45deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotateX(0deg);
    opacity: 1;
  }
}

.quiz-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

.quiz-modal.show {
  display: flex;
}

.quiz-content {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.quiz-header {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 25px;
  text-align: center;
}

.quiz-question {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  margin-top: 25px;
}

.quiz-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 12px;
  background: #f8f9ff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-option:hover {
  background: #f0f4ff;
  border-color: #4A90E2;
}

.quiz-option input[type="radio"] {
  margin-right: 12px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.quiz-option label {
  cursor: pointer;
  flex: 1;
  font-size: 16px;
  color: #2c3e50;
}

.quiz-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  justify-content: center;
}

.quiz-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.quiz-btn-submit {
  background: linear-gradient(135deg, #4A90E2 0%, #0052A3 100%);
  color: #fff;
}

.quiz-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.quiz-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.quiz-feedback {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  display: none;
}

.quiz-feedback.show {
  display: block;
}

.quiz-feedback.correct {
  background: #e8f5e9;
  color: #2e7d32;
}

.quiz-feedback.incorrect {
  background: #ffebee;
  color: #d9534f;
}
