/* ==========================================================================
   HK1 BOOKS & TECH — GERMAN LANGUAGE LEARNING SYSTEM
   Strictly isolated styles (.gc-*) to protect all existing website pages
   ========================================================================== */

.gc-ur {
  direction: rtl;
  unicode-bidi: isolate;
  font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.95;
  text-align: right;
  color: #1e293b;
}

.gc-de {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 600;
  color: #0f172a;
}

/* German Flag Accent Bar */
.gc-flag-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #111827 0%, #111827 33.33%, #dc2626 33.33%, #dc2626 66.66%, #eab308 66.66%, #eab308 100%);
  border-radius: 9999px;
}

/* ==========================================================================
   1. GERMAN COURSES SECTION ON german.html
   ========================================================================== */
.gc-courses-section {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xl, 18px);
  padding: 28px 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
}

.gc-section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.gc-section-title-group h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.gc-section-title-group p {
  font-size: 0.95rem;
  color: var(--text-secondary, #475569);
  margin: 0;
}

.gc-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  white-space: nowrap;
}

.gc-flag-dots {
  display: inline-flex;
  gap: 3px;
}

.gc-flag-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.gc-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.gc-course-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.gc-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
  border-color: #93c5fd;
}

.gc-course-card.gc-coming-soon {
  background: #f8fafc;
}

.gc-course-card.gc-coming-soon:hover {
  transform: translateY(-2px);
  border-color: var(--border-color, #e2e8f0);
}

.gc-card-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 14px;
  position: relative;
}

.gc-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gc-course-card.gc-coming-soon .gc-card-cover img {
  filter: saturate(0.75) brightness(0.92);
}

.gc-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.gc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gc-duration-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary, #475569);
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 9999px;
}

.gc-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.gc-status-available {
  background: #dcfce7;
  color: #15803d;
}

.gc-status-soon {
  background: #fef3c7;
  color: #b45309;
}

.gc-card-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.gc-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex: 1;
}

.gc-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md, 10px);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gc-card-btn-primary {
  background: linear-gradient(135deg, var(--btn-gradient-start, #2563eb), var(--btn-gradient-end, #1d4ed8));
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.gc-card-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  color: #ffffff;
}

.gc-card-btn-disabled {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1080px) {
  .gc-courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .gc-courses-section {
    padding: 20px 14px;
  }
  .gc-courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   2. COURSE DETAIL PAGES
   ========================================================================== */
.gc-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  width: 100%;
  box-sizing: border-box;
}

.gc-detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xl, 18px);
  padding: 28px;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.06));
  margin-bottom: 30px;
  align-items: start;
}

.gc-detail-cover-box {
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: var(--shadow-lg, 0 12px 28px rgba(0, 0, 0, 0.08));
  background: #0f172a;
}

.gc-detail-cover-box img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.gc-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.gc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.gc-badge-dark {
  background: #0f172a;
  color: #ffffff;
}

.gc-badge-gold {
  background: #fef3c7;
  color: #92400e;
}

.gc-badge-green {
  background: #dcfce7;
  color: #15803d;
}

.gc-detail-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  line-height: 1.2;
  margin: 0 0 12px 0;
}

.gc-detail-intro {
  font-size: 1rem;
  color: var(--text-secondary, #475569);
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.gc-detail-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.gc-stat-mini {
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  padding: 12px;
}

.gc-stat-mini .label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.gc-stat-mini .value {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.gc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.gc-btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md, 10px);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gc-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.gc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md, 10px);
  background: #f1f5f9;
  color: var(--text-primary, #0f172a);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-color, #e2e8f0);
  transition: background 0.2s ease;
}

.gc-btn-secondary:hover {
  background: #e2e8f0;
}

.gc-detail-section {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xl, 18px);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
}

.gc-detail-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gc-learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gc-learn-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md, 10px);
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
}

.gc-learn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.gc-learn-item h3 {
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-primary, #0f172a);
}

.gc-learn-item p {
  font-size: 0.86rem;
  color: var(--text-secondary, #475569);
  margin: 0;
  line-height: 1.5;
}

.gc-objectives-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gc-objectives-list li {
  padding: 12px 14px;
  background: #f8fafc;
  border-left: 4px solid #eab308;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text-primary, #0f172a);
}

.gc-plan-list {
  display: grid;
  gap: 10px;
}

.gc-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  background: #ffffff;
  flex-wrap: wrap;
}

.gc-plan-day {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.gc-day-num {
  padding: 5px 11px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.gc-plan-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary, #0f172a);
}

.gc-plan-sub {
  font-size: 0.83rem;
  color: var(--text-muted, #64748b);
}

@media (max-width: 900px) {
  .gc-detail-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }
  .gc-detail-cover-box {
    max-width: 280px;
    margin: 0 auto;
  }
  .gc-detail-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .gc-learn-grid,
  .gc-objectives-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gc-detail-section {
    padding: 18px 14px;
  }
  .gc-btn-start,
  .gc-btn-secondary {
    width: 100%;
  }
}

/* ==========================================================================
   3. STUDENT DASHBOARD & DAILY LEARNING INTERFACE
   ========================================================================== */
.gc-dashboard {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl, 18px);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg, 0 12px 28px rgba(0, 0, 0, 0.12));
  position: relative;
  overflow: hidden;
}

.gc-dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.gc-dashboard-title h1 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.gc-dashboard-title p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.gc-notif-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gc-notif-btn {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gc-notif-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gc-notif-btn.enabled {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #a7f3d0;
}

.gc-dash-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.gc-dash-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}

.gc-dash-stat .s-label {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.gc-dash-stat .s-val {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
}

.gc-progress-wrap {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}

.gc-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.gc-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  overflow: hidden;
}

.gc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #eab308 50%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.35s ease;
  width: 0%;
}

/* In-site Notification Banner */
.gc-insite-alert {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-left: 5px solid #10b981;
  border-radius: var(--radius-md, 10px);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gc-insite-alert h4 {
  margin: 0 0 2px 0;
  color: #065f46;
  font-size: 0.98rem;
}

.gc-insite-alert p {
  margin: 0;
  color: #047857;
  font-size: 0.88rem;
}

.gc-alert-close {
  background: transparent;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* Workspace Grid: Sidebar + Lesson Area */
.gc-workspace {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  align-items: start;
}

.gc-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  padding: 16px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.gc-sidebar-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.gc-lesson-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gc-lesson-nav-item {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gc-lesson-nav-item:hover:not(.is-locked) {
  border-color: #93c5fd;
  background: #eff6ff;
}

.gc-lesson-nav-item.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.gc-lesson-nav-item.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
  background: #f1f5f9;
}

.gc-nav-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.gc-nav-day {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-secondary, #475569);
  text-transform: uppercase;
}

.gc-nav-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-completed { background: #dcfce7; color: #15803d; }
.status-available { background: #dbeafe; color: #1d4ed8; }
.status-in-progress { background: #e0e7ff; color: #4338ca; }
.status-test-required { background: #fef3c7; color: #b45309; }
.status-countdown { background: #ffedd5; color: #c2410c; }
.status-locked { background: #e2e8f0; color: #475569; }

.gc-nav-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  line-height: 1.35;
}

/* Lesson Main Card */
.gc-lesson-main {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xl, 18px);
  padding: 28px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
  min-width: 0;
}

.gc-lesson-header {
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.gc-lesson-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.gc-lesson-header h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0 0 8px 0;
}

.gc-lesson-block {
  margin-bottom: 26px;
}

.gc-block-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gc-urdu-card {
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-right: 4px solid #2563eb;
  border-radius: 10px;
  padding: 16px 18px;
}

.gc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
}

.gc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.gc-table th {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
}

.gc-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--border-color, #e2e8f0);
  font-size: 0.92rem;
  vertical-align: middle;
}

.gc-table tr:nth-child(even) td {
  background: #f8fafc;
}

.gc-pron-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #eab308;
  border-radius: 10px;
  padding: 16px;
}

.gc-grammar-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 16px;
}

.gc-sentence-grid {
  display: grid;
  gap: 10px;
}

.gc-sentence-card {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 13px 16px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gc-sentence-left {
  flex: 1;
  min-width: 200px;
}

.gc-sentence-pron {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  margin-top: 3px;
}

.gc-exercise-box {
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 18px;
}

.gc-exercise-item {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.gc-exercise-item:last-child {
  margin-bottom: 0;
}

.gc-reveal-btn {
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.gc-answer-reveal {
  margin-top: 8px;
  padding: 8px 12px;
  background: #ecfdf5;
  border-radius: 6px;
  color: #065f46;
  font-size: 0.86rem;
  display: none;
}

.gc-answer-reveal.shown {
  display: block;
}

/* Lesson Test Card */
.gc-test-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 22px;
  margin-top: 28px;
}

.gc-test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.gc-question-card {
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.gc-question-title {
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin-bottom: 10px;
  font-size: 0.96rem;
}

.gc-options-list {
  display: grid;
  gap: 8px;
}

.gc-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gc-option-label:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.gc-test-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.gc-btn-submit {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.gc-btn-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.gc-test-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 10px;
}

.gc-test-result.pass {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.gc-test-result.fail {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.gc-lesson-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color, #e2e8f0);
  flex-wrap: wrap;
}

.gc-nav-btn {
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: #f8fafc;
  color: var(--text-primary, #0f172a);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.gc-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gc-nav-btn.primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.gc-locked-screen {
  text-align: center;
  padding: 40px 20px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

.gc-countdown-big {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  color: #c2410c;
  font-variant-numeric: tabular-nums;
  margin: 14px 0;
}

@media (max-width: 1024px) {
  .gc-dash-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .gc-workspace {
    grid-template-columns: 1fr;
  }
  .gc-sidebar {
    position: static;
    max-height: 320px;
  }
}

@media (max-width: 560px) {
  .gc-dashboard {
    padding: 18px 14px;
  }
  .gc-dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .gc-lesson-main {
    padding: 18px 14px;
  }
  .gc-test-card {
    padding: 16px 12px;
  }
}

/* ==========================================================================
   5. COURSE DETAIL RECOMMENDATIONS & HOMEPAGE TWO-ROW SHELF
   ========================================================================== */
.gc-home-shelf {
  width: 100%;
  box-sizing: border-box;
}

.gc-home-shelf .gc-courses-grid {
  margin-top: 0;
}

.gc-status-book {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ==========================================================================
   6. COURSE COMPLETION CONGRATULATIONS & CERTIFICATE SYSTEM
   ========================================================================== */
.gc-cert-banner {
  margin-top: 22px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 2px solid #eab308;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.gc-cert-banner-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.gc-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.6);
  color: #fde047;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.gc-cert-banner h2,
.gc-cert-banner h3 {
  margin: 0 0 8px 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.gc-cert-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.gc-cert-meta-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 14px;
}

.gc-cert-meta-item span {
  display: block;
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 3px;
}

.gc-cert-meta-item strong {
  font-size: 0.96rem;
  color: #ffffff;
}

.gc-cert-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  background: #eab308;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.gc-cert-cta-btn:hover {
  background: #facc15;
  transform: translateY(-1px);
}

.gc-cert-panel {
  margin-top: 20px;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.gc-cert-panel h3 {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  color: #0f172a;
}

.gc-cert-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.gc-cert-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gc-cert-field.full {
  grid-column: 1 / -1;
}

.gc-cert-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

.gc-cert-field input[type="text"],
.gc-cert-field input[type="tel"],
.gc-cert-field input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  font-size: 0.94rem;
  color: #0f172a;
  background: #f8fafc;
}

.gc-cert-field input:focus {
  outline: 2px solid #2563eb;
  border-color: #2563eb;
  background: #ffffff;
}

.gc-cert-photo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gc-cert-photo-preview {
  width: 96px;
  height: 112px;
  border-radius: 10px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: #64748b;
  font-size: 0.78rem;
  text-align: center;
  padding: 6px;
}

.gc-cert-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-cert-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
}

.gc-cert-preview-box {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.gc-cert-canvas-img {
  width: 100%;
  max-width: 820px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.gc-cert-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.gc-cert-btn-secondary {
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid #0f172a;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.gc-cert-btn-secondary:hover {
  background: #f1f5f9;
}

@media (max-width: 640px) {
  .gc-cert-form-grid {
    grid-template-columns: 1fr;
  }
}
