/* ================================================================
   Proten LMS — Course UI v1.7.9
   font-family:inherit everywhere (picks up theme font)
   Brand colors via --proten-* CSS vars set by plugin settings
   ================================================================ */

/* ================================================================
   COURSE CARD  (.occ-card)
   Refreshed for the Proten Learning Academy brand: soft elevation
   with a hover lift, a thin brand gradient accent along the top edge,
   and gold/blue in place of the old generic green/orange accents.
   Markup/classes unchanged — templates/course/card.php needs no edits.
   ================================================================ */
.occ-card {
  background:#fff;
  border:1px solid #eef1f6;
  border-radius:var(--proten-radius, 12px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  font-family:inherit;
  transition:transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s cubic-bezier(.4,0,.2,1), border-color .22s;
  position:relative;
  box-shadow:0 1px 3px rgba(9,50,77,.06);
}
.occ-card::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--proten-gold,#FFD53F) 0%, var(--proten-blue,#167DC0) 100%);
  opacity:0; transition:opacity .22s;
  z-index:1;
}
.occ-card:hover {
  transform:translateY(-5px);
  box-shadow:var(--proten-shadow-lg, 0 8px 40px rgba(9,50,77,.14));
  border-color:#dde6f0;
}
.occ-card:hover::before { opacity:1; }

/* Thumbnail */
.occ-thumb {
  display:block;
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#f1f5f9;
  flex-shrink:0;
  text-decoration:none;
}
.occ-thumb img {
  width:100%; height:100%;
  object-fit:cover; display:block;
  transition:transform .5s cubic-bezier(.4,0,.2,1);
}
.occ-card:hover .occ-thumb img { transform:scale(1.06); }

.occ-thumb-empty {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:44px;
  background:linear-gradient(135deg, var(--proten-gold,#FFD53F), var(--proten-blue,#167DC0));
}

/* Badge top-left */
.occ-badge {
  position:absolute; top:10px; left:10px;
  font-size:10px; font-weight:800;
  letter-spacing:.3px; text-transform:uppercase;
  padding:5px 11px; border-radius:99px;
  pointer-events:none; z-index:2;
  box-shadow:0 2px 8px rgba(9,50,77,.18);
}
.occ-badge-sale     { background:var(--proten-accent,#DC2626); color:#fff; }
.occ-badge-free     { background:linear-gradient(120deg, var(--proten-blue,#167DC0), var(--proten-navy,#09324D)); color:#fff; }
.occ-badge-enrolled { background:var(--proten-navy,#09324D); color:#fff; }

/* Body */
.occ-body {
  padding:16px 18px 4px;
  flex:1; display:flex; flex-direction:column; gap:8px;
}

/* Rating row: gold number · gold stars · grey count */
.occ-rating {
  display:flex; align-items:center; gap:5px;
  line-height:1;
}
.occ-rat-num {
  font-size:13px; font-weight:800;
  color:var(--proten-gold-deep,#D1A712);
  font-family:inherit;
}
.occ-stars {
  display:inline-flex; gap:0; line-height:1;
  color:var(--proten-gold,#FFD53F); font-size:13px;
}
.occ-stars i { font-style:normal; }
.occ-star-off { color:#e2e5ea; }
.occ-rat-ct {
  font-size:11px; color:#9ca3af;
  font-family:inherit;
}

/* Title */
.occ-title {
  font-size:15px; font-weight:700;
  line-height:1.35; margin:0;
  display:-webkit-box; -webkit-line-clamp:2;
  -webkit-box-orient:vertical; overflow:hidden;
  font-family:inherit;
}
.occ-title a { color:var(--proten-navy,#09324D); text-decoration:none; transition:color .15s; }
.occ-title a:hover { color:var(--proten-blue,#167DC0); text-decoration:none; }

/* Excerpt — short 2-line snippet under title */
.occ-excerpt {
  font-size:12px;
  line-height:1.5;
  color:#6b7280;
  margin:0 0 2px;
  font-family:inherit;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Meta row: svg icon + text, spaced by dots */
.occ-meta {
  display:flex; align-items:center;
  flex-wrap:wrap; gap:6px 0;
  font-size:12px; color:#6b7280;
  font-family:inherit; margin-top:auto;
}
.occ-meta-item {
  display:inline-flex; align-items:center; gap:4px;
}
.occ-meta-item + .occ-meta-item::before {
  content:'·'; color:#d1d5db; margin:0 6px;
}
.occ-meta-item svg { flex-shrink:0; color:var(--proten-blue,#167DC0); opacity:.75; }

/* Footer: price right-aligned exactly like screenshot */
.occ-footer {
  display:flex; align-items:center;
  justify-content:space-between; gap:8px;
  padding:12px 18px 16px;
  border-top:1px solid #f0f3f8;
  margin-top:8px;
}
.occ-price-wrap {
  display:flex; align-items:baseline; gap:6px;
}
.occ-price-free { font-size:17px; font-weight:900; color:var(--proten-blue,#167DC0); font-family:inherit; }
.occ-price-now  { font-size:17px; font-weight:900; color:var(--proten-navy,#09324D); font-family:inherit; }
.occ-price-orig {
  font-size:12px; color:#9ca3af;
  text-decoration:line-through; font-family:inherit;
}
.occ-btn {
  display:inline-flex; align-items:center;
  padding:8px 17px;
  background:var(--proten-gold,#FFD53F);
  color:var(--proten-navy,#09324D);
  border-radius:var(--proten-radius-sm, 6px); font-size:12px; font-weight:700;
  text-decoration:none !important; white-space:nowrap;
  font-family:inherit; border:none; cursor:pointer;
  transition:transform .15s, box-shadow .15s, background-color .15s;
}
.occ-btn:hover {
  background-color:var(--proten-gold-mid,#EBBD1A);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(209,167,18,.35);
  color:var(--proten-navy,#09324D) !important;
}

/* ================================================================
   LISTING PAGE
   ================================================================ */
.proten-listing-wrap { font-family:inherit; }

.proten-listing-hero {
  background:linear-gradient(135deg, var(--proten-dark,#09324D) 0%, #2d2b2b 100%);
  color:#fff; padding:46px 24px; text-align:center;
  border-radius:10px; margin-bottom:28px;
}
.proten-listing-hero h1 {
  font-size:clamp(22px,4vw,32px); font-weight:900;
  margin:0 0 8px; font-family:inherit;
}
.proten-listing-hero p {
  font-size:15px; color:rgba(255,255,255,.7);
  margin:0 0 22px; font-family:inherit;
}
.proten-search-bar {
  display:flex; max-width:540px; margin:0 auto;
  background:#fff; border-radius:10px; overflow:hidden;
  box-shadow:0 4px 20px rgba(0,0,0,.2);
}
.proten-search-bar input {
  flex:1; padding:14px 18px; border:none; outline:none;
  font-size:14px; font-family:inherit; color:#111827;
}
.proten-search-bar button {
  padding:14px 20px; border:none; font-weight:800; font-size:14px;
  cursor:pointer; font-family:inherit; white-space:nowrap;
  background:var(--proten-primary,#FFD53F); color:var(--proten-dark,#09324D);
}
.proten-filter-bar {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-bottom:22px; border-bottom:1px solid #e5e9f0; padding-bottom:14px;
}
.proten-filter-chip {
  display:inline-flex; align-items:center; gap:4px;
  padding:7px 16px; border-radius:99px; font-size:13px; font-weight:600;
  cursor:pointer; border:1.5px solid #e5e9f0; background:#fff; color:#6b7280;
  transition:all .18s; font-family:inherit;
}
.proten-filter-chip:hover { border-color:#111827; color:#111827; }
.proten-filter-chip.active {
  background:var(--proten-dark,#09324D);
  border-color:var(--proten-dark,#09324D); color:#fff;
}
.proten-sort-select {
  margin-left:auto; padding:7px 12px;
  border:1.5px solid #e5e9f0; border-radius:8px;
  font-size:13px; font-family:inherit; background:#fff;
  cursor:pointer; outline:none; color:#111827;
}
.proten-courses-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:22px;
}
.proten-no-results {
  grid-column:1/-1; text-align:center;
  padding:60px 20px; color:#9ca3af; font-family:inherit;
}
.proten-no-results .icon { font-size:52px; display:block; margin-bottom:12px; }
.proten-pagination {
  display:flex; justify-content:center; align-items:center;
  gap:6px; margin-top:32px; flex-wrap:wrap;
}
.proten-page-btn {
  min-width:36px; height:36px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  border:1.5px solid #e5e9f0; background:#fff;
  font-size:13px; font-weight:600; cursor:pointer;
  color:#111827; font-family:inherit; transition:all .18s;
}
.proten-page-btn:hover,
.proten-page-btn.active {
  background:var(--proten-primary,#FFD53F);
  border-color:var(--proten-primary,#FFD53F);
}
.proten-page-btn:disabled { opacity:.4; cursor:not-allowed; }

/* ================================================================
   CAROUSEL  — no overflow on card itself so border shows cleanly
   ================================================================ */
.proten-carousel-wrap { position:relative; }
.proten-carousel-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:20px; flex-wrap:wrap; gap:12px;
}
.proten-carousel-title {
  font-size:clamp(18px,3vw,26px); font-weight:900;
  color:var(--proten-dark,#09324D); margin:0; font-family:inherit;
}
.proten-carousel-controls { display:flex; gap:8px; }
.proten-carousel-btn {
  width:36px; height:36px; border-radius:50%;
  background:#fff; border:1.5px solid #e5e9f0;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:18px;
  color:var(--proten-dark,#09324D); transition:all .18s; line-height:1;
}
.proten-carousel-btn:hover {
  background:var(--proten-primary,#FFD53F);
  border-color:var(--proten-primary,#FFD53F);
}
.proten-carousel-btn:disabled { opacity:.3; cursor:not-allowed; }
.proten-carousel-track-wrap { overflow:hidden; }
.proten-carousel-track {
  display:flex; gap:20px;
  transition:transform .4s cubic-bezier(.4,0,.2,1);
  will-change:transform; align-items:stretch;
}
.proten-carousel-track .occ-card { flex:0 0 calc(25% - 15px); }
.proten-carousel-dots {
  display:flex; justify-content:center; gap:6px; margin-top:14px;
}
.proten-carousel-dot {
  width:8px; height:8px; border-radius:99px;
  background:#e5e9f0; border:none; cursor:pointer; padding:0;
  transition:all .25s;
}
.proten-carousel-dot.active {
  background:var(--proten-primary,#FFD53F); width:22px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width:1023px) {
  .proten-carousel-track .occ-card { flex:0 0 calc(33.333% - 14px); }
}
@media (max-width:767px) {
  .proten-carousel-track .occ-card { flex:0 0 calc(50% - 10px); }
  .proten-courses-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:479px) {
  .proten-carousel-track .occ-card { flex:0 0 86%; }
  .proten-courses-grid { grid-template-columns:1fr; }
}
