.cover-logo-licadgis { --course-logo: url('../uploads/trainings/default.jpg'); }
.cover-logo-licity { --course-logo: url('../images/licity-logo.png'); }
.cover-logo-likas { --course-logo: url('../images/likas-logo.png'); }
.cover-logo-limar { --course-logo: url('../images/limar-logo.png'); }
.cover-logo-litop { --course-logo: url('../images/litop-logo.png'); }
.cover-logo-lites { --course-logo: url('../images/lites-logo.png'); }

.course-card .cover.dimmed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.25);
}
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: #2a2a2a;
  background: #f7f8fc;
}
.brand-text {
  font-family: 'Playfair Display', Merriweather, Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}
h1, h2, h3, .display-4 {
  font-family: 'Playfair Display', Merriweather, Georgia, 'Times New Roman', serif;
  color: #2f2f2f; /* neutral headings */
}
h4, h5, h6 {
  color: #3a3a3a;
}
.subtitle, .muted {
  color: #C79A2D; /* golden accent */
}

/* Navbar refinements */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #5B2E91;
  color: #fff;
  font-weight: 700;
  font-family: 'Playfair Display', Merriweather, serif;
}
.student-navbar .nav-link { color: #2c2c2c; }
.student-navbar .nav-link-underline {
  position: relative;
}
.student-navbar .nav-link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #C79A2D; /* subtle gold accent only on hover/active */
  transition: width .2s ease;
}
.student-navbar .nav-link-underline:hover::after,
.student-navbar .nav-link-underline.active::after {
  width: 100%;
}
/* Neutralize primary to dark scheme */
.btn-primary, .btn-dark {
  background-color: #111;
  border-color: #111;
}
.btn-primary:hover, .btn-dark:hover {
  background-color: #000;
  border-color: #000;
}
.btn-primary:focus, .btn-primary:active {
  background-color: #000 !important;
  border-color: #000 !important;
  box-shadow: 0 0 0 .2rem rgba(0,0,0,0.05) !important; /* remove bootstrap blue ring */
}
.btn-outline-primary, .btn-outline-dark { color: #111; border-color: #111; }
.btn-outline-primary:hover, .btn-outline-dark:hover { background-color: #111; border-color: #111; color: #fff; }
h1, h2, h3, .display-4 {
  font-family: 'Playfair Display', Merriweather, Georgia, 'Times New Roman', serif;
  color: #6a0dad; /* purple for main headings */
}
h4, h5, h6 {
  color: #6a0dad;
}
.subtitle, .muted {
  color: #b8860b; /* golden accent for subtitles */
}

/* Navbar */
.student-navbar .nav-link {
  color: #3a3a3a;
}
.student-navbar .nav-link:hover {
  color: #b8860b; /* golden hover */
}

/* Cards */
.edu-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.edu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}
.edu-card .card-icon { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #111; color: #fff; }
.badge-pill { border-radius: 999px; padding: .35rem .6rem; font-size: .72rem; letter-spacing: .02em; }
.badge-enrolled { background: #111; color: #fff; }
.badge-completed { background: #198754; color: #fff; }
.badge-new { background: #0d6efd; color: #fff; }
.edu-card .card-title {
  color: #2f2f2f;
  margin-bottom: .25rem;
}
.edu-card .btn-primary {
  background-color: #4B4DD8;
  border-color: #4B4DD8;
}
.edu-card .btn-primary:hover {
  background-color: #3e40b5;
  border-color: #3e40b5;
}

/* Hero section */
.hero { background: #fafafe; border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; }

/* Skeleton placeholders */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
}

/* Course card (inspiration style) */
.course-card { border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.course-card:hover { transform: translateY(-2px); border-color: rgba(0,0,0,0.14); box-shadow: 0 14px 28px rgba(0,0,0,0.10); }
.course-card .cover {
  height: 140px;
  min-height: 140px;
  width: 100%;
  position: relative;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
  overflow: hidden;
}
.course-card .cover.cover-custom {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: transparent;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.course-card .cover.cover-custom img.cover-img-custom {
  width: 100%;
  height: 90%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.course-card .cover.cover-custom.dimmed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.25);
  pointer-events: none;
  z-index: 1;
}
.course-card .cover span.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.cover-photo-licity {
  background-image: url('../images/licity-egitim.png') !important;
  background-position: left center !important; /* sol kısım sabit */
  background-repeat: no-repeat !important;
  background-color: #0b1a66;
  background-size: cover !important; /* boşluk yok, kırpma serbest */
}
/* Ek eğitim kapak fotoğrafları */
.cover-photo-litop {
  background-image: url('../images/litop-egitim.png') !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-color: #0b1a66;
  background-size: cover !important;
}
.cover-photo-likas {
  background-image: url('../images/likas-egitim.png') !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-color: #0b1a66;
  background-size: cover !important;
}
.cover-photo-default {
  background-image: url('../images/litop-egitim.png') !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-color: #0b1a66;
  background-size: cover !important;
}
.course-card.cover-enrolled .cover:not(.cover-custom) { background: linear-gradient(135deg, rgba(17,17,17,.85), rgba(52,58,64,.85)); }
.course-card.cover-completed .cover:not(.cover-custom) { background: linear-gradient(135deg, rgba(25,135,84,.85), rgba(76,175,80,.85)); }
.course-card.cover-new .cover:not(.cover-custom) { background: linear-gradient(135deg, rgba(13,110,253,.85), rgba(90,162,255,.85)); }
.course-card .cover .icon { display:none; }
.course-card .cover .logo-img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); opacity: .95; }
.course-card .body { padding:0px 16px 18px; }
.course-card .title { font-weight: 700; color:#1e1e1e; margin: 0 0 6px; letter-spacing: .1px; }
.course-card .subtitle { font-size: .9rem; color:#666; margin-bottom: 12px; }
.course-card .meta { display:flex; gap:16px; align-items:center; color:#666; font-size:.9rem; }
.course-card .meta i { margin-right: 4px; }
.course-card .badge-tiny { font-size: .7rem; border-radius: 999px; padding: .28rem .6rem; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* Utilities for metadata */
.meta {
  font-size: .9rem;
  color: #6b6b6b;
}

/* Next trainings list */
.next-list { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.next-item { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 14px 16px; display:flex; align-items:center; justify-content:space-between; box-shadow: 0 10px 24px rgba(0,0,0,0.06); }
.next-item + .next-item { margin-top: 0; }
.next-left { display:flex; align-items:center; gap: 14px; }
.next-avatar { width: 56px; height: 56px; border-radius: 12px; background:#f6f7f9; display:flex; align-items:center; justify-content:center; border: 1px solid rgba(0,0,0,0.08); }
.next-avatar img { width: 36px; height: 36px; object-fit: contain; }
.next-title { margin:0; font-weight: 700; color:#1e1e1e; }
.next-sub { margin:0; color:#6b6b6b; font-size:.9rem; }
.next-right { display:flex; align-items:center; gap: 12px; }

/* Icon-only circular button */
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.btn-icon.btn-dark { background-color: #111; border-color: #111; }
.btn-icon.btn-dark:hover { background-color: #000; border-color: #000; transform: translateX(1px); }
.btn-icon i { font-size: 1rem; }
/* Primary icon button */
.btn-icon.btn-primary { background-color: #0b5ed7; border-color: #0b5ed7; color:#fff; }
.btn-icon.btn-primary:hover { background-color: #094db3; border-color:#094db3; }
/* Outline icon button (for copy) */
.btn-icon-outline { border:1px solid #0b5ed7; color:#0b5ed7; background: transparent; }
.btn-icon-outline:hover { background:#0b5ed7; color:#fff; }

/* Action group styling */
.next-actions { display:flex; align-items:center; gap:8px; }
.next-actions .btn { box-shadow: none; }

/* Compound CTA: text button + arrow icon as one control */
.cta-group { display:flex; align-items:center; }
.btn-cta i { transform: translateX(0); transition: transform .15s ease; }
.btn-cta:hover i { transform: translateX(2px); }
.btn-cta { transition: transform .15s ease, box-shadow .15s ease; }
.btn-cta:hover { box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.btn-cta:active { transform: translateY(1px); }

/* Top-right toast for copy feedback */
.toast-copy { position: fixed; top: 16px; right: 16px; background: #198754; color: #fff; padding: 10px 14px; border-radius: 12px; font-size: .9rem; box-shadow: 0 12px 26px rgba(25,135,84,.35); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; z-index: 1060; }
.toast-copy.show { opacity: 1; transform: translateY(0); }

/* PDF toast notification */
.toast-pdf { position: fixed; top: 16px; right: 16px; background: #0b5ed7; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: .9rem; box-shadow: 0 12px 26px rgba(11,94,215,.35); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; z-index: 1060; font-weight: 500; }
.toast-pdf.show { opacity: 1; transform: translateY(0); }
.toast-pdf i { margin-right: 8px; }

/* Color chips for meta info */
.chip { display:inline-flex; align-items:center; gap:6px; padding:.3rem .6rem; border-radius:999px; font-size:.8rem; font-weight:600; letter-spacing:.02em; }
.chip i { font-size:.9rem; }
.chip-blue { color:#0b5ed7; background: rgba(13,110,253,.12); }
.chip-gray { color:#5c636a; background: rgba(108,117,125,.15); }
.chip-green { color:#198754; background: rgba(25,135,84,.15); }

/* Certificates list – compact horizontal card similar to screenshot */
.cert-card { background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:14px; padding:16px; height:100%; box-shadow:0 10px 24px rgba(0,0,0,.06); }
.cert-row { display:flex; gap:14px; align-items:flex-start; }
.cert-thumb { width:56px; height:56px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#f6f7f9; border:1px solid rgba(0,0,0,.08); color:#6a0dad; font-size:1.4rem; flex:0 0 auto; }
.cert-thumb.big { width:64px; height:64px; font-size:1.6rem; }
.cert-logo { width:40px; height:40px; object-fit:contain; }
.cert-logo-circle { width:28px; height:28px; border-radius:999px; object-fit:contain; vertical-align:middle; }
.cert-body { flex:1 1 auto; min-width:0; }
.cert-title { font-weight:700; color:#1e1e1e; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cert-sub { font-size:.9rem; color:#6b6b6b; }
.cert-meta { font-size:.85rem; color:#6b6b6b; }
.cert-right { display:flex; align-items:center; gap:10px; }
.cert-head { margin-bottom:4px; }
.cert-score { font-weight:800; color:#1e1e1e; }
.cert-score .score-label { font-size:.7rem; color:#6b6b6b; font-weight:700; letter-spacing:.04em; margin-left:4px; }
.cert-menu { color:#6b6b6b; text-decoration:none; padding:0 6px; }
.cert-menu:hover { color:#111; text-decoration:none; }
.cert-progress { position:relative; height:6px; background:#f1f1f1; border-radius:999px; overflow:hidden; margin:6px 0 10px; }
.cert-progress span { position:absolute; left:0; top:0; bottom:0; background:#6a0dad; border-radius:999px; }
.cert-progress.full { height:8px; }
.cert-footer .btn { box-shadow:none; }
.cert-meta-row code.cert-code { background:#f6f7f9; border:1px solid rgba(0,0,0,.08); padding:.2rem .45rem; border-radius:6px; font-size:.8rem; color:#333; }
.chip-verify { color:#198754; background: rgba(25,135,84,.12); border:1px solid rgba(25,135,84,.25); }
.cert-actions .btn { box-shadow:none; }
.cert-actions .btn-dark { background:#111; border-color:#111; }
.cert-actions .btn-dark:hover { background:#000; border-color:#000; }

/* Minimal modern certificate link card */
.card-link { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid rgba(0,0,0,.07); border-radius:14px; padding:14px 16px; text-decoration:none; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.card-link:hover { box-shadow:0 10px 24px rgba(0,0,0,.08); border-color:rgba(0,0,0,.14); transform: translateY(-1px); }
.cm-left { flex:0 0 auto; }
.cm-logo { width:36px; height:36px; border-radius:999px; object-fit:contain; background:#f6f7f9; border:1px solid rgba(0,0,0,.08); }
.cm-body { flex:1 1 auto; min-width:0; }
.cm-title { font-weight:700; color:#1f1f1f; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cm-sub { color:#6b6b6b; font-size:.9rem; }
.cm-right { color:#9a9a9a; }

/* Rich, modern certificate card */
.cert-pro { background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:20px; padding:18px; box-shadow:0 14px 28px rgba(0,0,0,.06); position:relative; overflow:hidden; }
.cert-pro::before { content:""; position:absolute; top:0; left:0; right:0; height:8px; border-top-left-radius:20px; border-top-right-radius:20px; }
.cert-pro.cp-accent-blue::before { background: linear-gradient(90deg, #0b5ed7, #5ec4ff); }
.cert-pro.cp-accent-orange::before { background: linear-gradient(90deg, #ff9800, #ffd180); }
.cert-pro.cp-accent-indigo::before { background: linear-gradient(90deg, #5B2E91, #9b6bd4); }
.cp-header { display:flex; align-items:center; gap:14px; margin-top:6px; }
.cp-icon { width:56px; height:56px; border-radius:16px; background:#f6f7f9; display:flex; align-items:center; justify-content:center; border:1px solid rgba(0,0,0,.06); box-shadow:0 8px 18px rgba(0,0,0,.06) inset; }
.cp-icon img { width:28px; height:28px; object-fit:contain; opacity:.9; }
.cp-head-text { display:flex; flex-direction:column; }
.cp-title { font-size:1.15rem; font-weight:800; color:#1e1e1e; display:flex; align-items:center; gap:6px; }
.cp-logo-circle { width:22px; height:22px; border-radius:999px; object-fit:contain; }
.cp-sub { color:#6b6b6b; font-size:.95rem; }
.cp-body { margin-top:14px; }
.cp-desc { color:#4a4a4a; line-height:1.5; }
.cp-row { display:flex; gap:16px; flex-wrap:wrap; color:#444; }
.cp-meta { color:#555; }
.cp-tags { margin-top:14px; display:flex; gap:8px; flex-wrap:wrap; }
.cp-chip { background:rgba(13,110,253,.08); color:#0b5ed7; border:1px solid rgba(13,110,253,.2); padding:.28rem .6rem; border-radius:999px; font-weight:700; font-size:.8rem; }

/* Student footer */
.student-footer {
  background: #ffffff;
  color: #0f172a;
  margin-top: 32px;
  padding: 12px 0;
  border-top: 1px solid rgba(15,23,42,0.08);
}
.student-footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .9rem;
}
.student-footer__text {
  color: #1e1e1e;
  font-weight: 500;
}
.student-layout-content {
  flex: 1 0 auto;
  width: 100%;
}
.cp-chip-soft { background:rgba(25,135,84,.08); color:#198754; border-color: rgba(25,135,84,.25); }
.cp-footer { margin-top:16px; padding-top:12px; border-top:1px solid rgba(0,0,0,.06); display:flex; align-items:center; justify-content:space-between; }
.cp-id { color:#6b6b6b; font-size:.9rem; }