/*
   SURECERTIFICATE - KNOWLEDGEHUT EXACT MATCH
   Visual Reset: Clean White Hero | Soft Shadows | Green Checkmarks
   ============================================================ */

:root {
  --kh-primary: #1a365d;
  --kh-primary-dark: #0f2942;
  --kh-primary-light: #2c5282;
  --kh-accent: #48bb78;
  --kh-green-check: #48bb78;
  --kh-white: #ffffff;
  --kh-cream: #fffaf0;
  --kh-beige: #fef3c7;
  --kh-gray-50: #f7fafc;
  --kh-gray-100: #edf2f7;
  --kh-gray-200: #e2e8f0;
  --kh-gray-300: #cbd5e0;
  --kh-gray-400: #a0aec0;
  --kh-gray-500: #718096;
  --kh-gray-600: #4a5568;
  --kh-gray-700: #2d3748;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-sidebar: 0 8px 24px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
  --container-padding: 24px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.kh-course-page {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--kh-gray-700);
  background: var(--kh-white);
  -webkit-font-smoothing: antialiased;
}

.kh-course-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hero Section */
.kh-hero {
  background: var(--kh-white) !important;
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--kh-gray-100);
  position: relative;
}

.kh-hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.kh-hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
  position: relative;
}

@media (max-width: 1024px) {
  .kh-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .kh-hero-visual {
    order: -1;
  }
}

/* Breadcrumbs */
.kh-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--kh-gray-500);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.kh-breadcrumbs a {
  color: var(--kh-gray-600);
  text-decoration: none;
}

.kh-breadcrumbs a:hover {
  color: var(--kh-primary);
  text-decoration: underline;
}

.kh-breadcrumbs-separator {
  width: 14px;
  height: 14px;
  color: var(--kh-gray-400);
  flex-shrink: 0;
}

.kh-category-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--kh-gray-500);
  margin-bottom: 12px;
}

.kh-hero-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--kh-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.kh-hero-subtitle {
  font-size: 18px;
  color: var(--kh-gray-600);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 560px;
}

.kh-enrolled-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.kh-enrolled-avatars {
  display: flex;
  align-items: center;
}

.kh-enrolled-avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--kh-white);
  margin-left: -8px;
  object-fit: cover;
}

.kh-enrolled-avatars img:first-child {
  margin-left: 0;
}

.kh-enrolled-text {
  font-size: 14px;
  color: var(--kh-gray-600);
  font-weight: 600;
}

.kh-ratings {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.kh-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--kh-gray-700);
}

.kh-rating-stars {
  color: #f6ad55;
  font-size: 12px;
}

.kh-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.kh-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--kh-gray-700);
  line-height: 1.5;
}

.kh-feature-icon {
  width: 20px;
  height: 20px;
  background: var(--kh-green-check);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.kh-feature-icon svg {
  width: 12px;
  height: 12px;
  color: white;
}

.kh-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.kh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.kh-btn-primary {
  background: var(--kh-primary);
  color: var(--kh-white);
}

.kh-btn-primary:hover {
  background: var(--kh-primary-light);
}

.kh-btn-secondary {
  background: var(--kh-white);
  color: var(--kh-primary);
  border: 2px solid var(--kh-gray-300);
}

.kh-btn-secondary:hover {
  border-color: var(--kh-primary);
  background: var(--kh-gray-50);
}

.kh-team-link {
  font-size: 14px;
  color: var(--kh-gray-600);
}

.kh-team-link a {
  color: var(--kh-accent);
  text-decoration: underline;
  font-weight: 700;
}

.kh-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.kh-hero-image-wrap {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

.kh-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kh-accreditation-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--kh-white);
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--kh-gray-200);
  font-size: 13px;
  font-weight: 600;
  color: var(--kh-gray-700);
}

.kh-accreditation-badge img {
  width: 32px;
  height: 32px;
}

.kh-stats-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  padding: 40px 0;
}

.kh-stats-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.kh-stat {
  text-align: center;
}

.kh-stat-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--kh-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.kh-stat-label {
  font-size: 13px;
  color: var(--kh-gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kh-main {
  background: var(--kh-white);
  padding: 60px 0;
}

.kh-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.kh-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .kh-content-grid {
    grid-template-columns: 1fr;
  }
  .kh-sidebar {
    order: -1;
    position: static !important;
  }
}

.kh-main-col {
  min-width: 0;
}

.kh-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kh-sidebar-card {
  background: var(--kh-white);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--shadow-sidebar);
  border: 1px solid var(--kh-gray-100);
}

.kh-sidebar-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--kh-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.kh-sidebar-text {
  font-size: 14px;
  color: var(--kh-gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

.kh-sidebar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.kh-sidebar-btn {
  width: 100%;
  justify-content: center;
  background: var(--kh-primary);
  color: var(--kh-white);
  padding: 14px 20px;
  font-size: 14px;
}

.kh-sidebar-btn:hover {
  background: var(--kh-primary-light);
}

.kh-sidebar-btn-outline {
  background: var(--kh-white);
  color: var(--kh-primary);
  border: 2px solid var(--kh-gray-300);
}

.kh-sidebar-btn-outline:hover {
  border-color: var(--kh-primary);
  background: var(--kh-gray-50);
}

.kh-section {
  margin-bottom: 64px;
}

.kh-section-header {
  margin-bottom: 32px;
}

.kh-section-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--kh-gray-500);
  margin-bottom: 8px;
}

.kh-section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--kh-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.kh-prereq-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .kh-prereq-grid {
    grid-template-columns: 1fr;
  }
}

.kh-prereq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kh-prereq-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--kh-gray-700);
  line-height: 1.5;
}

.kh-prereq-check {
  width: 22px;
  height: 22px;
  background: var(--kh-green-check);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.kh-prereq-check svg {
  width: 12px;
  height: 12px;
  color: white;
}

.kh-prereq-image img {
  width: 100%;
  max-width: 260px;
}

.kh-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .kh-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.kh-highlight-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kh-highlight-icon {
  width: 44px;
  height: 44px;
  background: var(--kh-gray-100);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kh-primary);
  font-size: 20px;
}

.kh-highlight-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--kh-primary);
  line-height: 1.4;
}

.kh-highlight-text {
  font-size: 14px;
  color: var(--kh-gray-600);
  line-height: 1.6;
}

.kh-accordion {
  background: var(--kh-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--kh-gray-200);
}

.kh-accordion-item {
  border-bottom: 1px solid var(--kh-gray-200);
}

.kh-accordion-item:last-child {
  border-bottom: none;
}

.kh-accordion-header {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--kh-white);
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--kh-primary);
  text-align: left;
  transition: background 0.2s;
  font-family: inherit;
}

.kh-accordion-header:hover {
  background: var(--kh-gray-50);
}

.kh-accordion-header.active {
  background: var(--kh-gray-50);
}

.kh-accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--kh-gray-500);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.kh-accordion-header.active .kh-accordion-icon {
  transform: rotate(180deg);
}

.kh-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.kh-accordion-body.open {
  max-height: 1000px;
}

.kh-accordion-content {
  padding: 0 24px 24px;
}

.kh-accordion-content ul {
  list-style: none;
  padding: 0;
}

.kh-accordion-content li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--kh-gray-700);
  border-bottom: 1px solid var(--kh-gray-100);
}

.kh-accordion-content li:last-child {
  border-bottom: none;
}

.kh-accordion-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--kh-green-check);
  border-radius: 50%;
}

.kh-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.kh-review-card {
  background: var(--kh-gray-50);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  border: 1px solid var(--kh-gray-200);
}

.kh-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.kh-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--kh-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
}

.kh-review-meta {
  flex: 1;
}

.kh-review-name {
  font-weight: 700;
  color: var(--kh-primary);
  font-size: 15px;
}

.kh-review-role {
  font-size: 13px;
  color: var(--kh-gray-500);
}

.kh-review-stars {
  color: #f6ad55;
  font-size: 13px;
}

.kh-review-text {
  font-size: 15px;
  color: var(--kh-gray-700);
  line-height: 1.6;
  font-style: italic;
}

.kh-faq-list {
  max-width: 800px;
}

.kh-faq-item {
  border-bottom: 1px solid var(--kh-gray-200);
  padding: 20px 0;
}

.kh-faq-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--kh-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.kh-faq-question:hover {
  color: var(--kh-primary-light);
}

.kh-faq-icon {
  color: var(--kh-gray-400);
  font-size: 14px;
  transition: transform 0.2s;
}

.kh-faq-question.active .kh-faq-icon {
  transform: rotate(180deg);
}

.kh-faq-answer {
  margin-top: 12px;
  font-size: 15px;
  color: var(--kh-gray-600);
  line-height: 1.7;
}

.kh-hidden { display: none !important; }

@media (max-width: 768px) {
  .kh-hero-title { font-size: 32px; }
  .kh-section-title { font-size: 26px; }
  .kh-stats-bar { padding: 24px; gap: 24px; }
  .kh-stat-value { font-size: 28px; }
  .kh-sidebar { position: static; }
}
