/* Quailcentre — brand styles on top of Bootstrap 5 */
:root {
  --qc-green: #1f3a24;
  --qc-green-2: #2d5234;
  --qc-gold: #b08d3c;
  --qc-gold-dark: #8a6a1f;
  --qc-cream: #faf7f0;
  --qc-cream-2: #f3ecdc;
  --qc-ink: #26301f;
  --qc-muted: #6b6453;
  --qc-line: #e6dfcc;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--qc-ink);
  --bs-link-color: var(--qc-gold-dark);
  --bs-link-color-rgb: 138, 106, 31;
  --bs-link-hover-color: var(--qc-green);
  --bs-border-radius: .6rem;
}
body { background: var(--qc-cream); color: var(--qc-ink); }
h1, h2, h3, .qc-serif { font-family: "Fraunces", Georgia, serif; letter-spacing: -.01em; }
.text-qc { color: var(--qc-green) !important; }
.qc-gold { color: var(--qc-gold) !important; }
.bg-qc { background: var(--qc-green) !important; color: #fff; }
.bg-cream { background: var(--qc-cream-2) !important; }
.qc-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* Buttons */
.btn-qc { background: var(--qc-gold-dark); border-color: var(--qc-gold-dark); color: #fff; font-weight: 600; }
.btn-qc:hover, .btn-qc:focus { background: var(--qc-green); border-color: var(--qc-green); color: #fff; }
.btn-outline-qc { border-color: var(--qc-gold-dark); color: var(--qc-gold-dark); font-weight: 600; }
.btn-outline-qc:hover { background: var(--qc-gold-dark); color: #fff; }
.btn-green { background: var(--qc-green); color: #fff; font-weight: 600; }
.btn-green:hover { background: var(--qc-green-2); color: #fff; }
.btn-xl { padding: .9rem 2rem; font-size: 1.15rem; border-radius: .8rem; }

/* Header */
.qc-header { background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--qc-line); }
.qc-brand { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.35rem; color: var(--qc-green); }
.qc-mainnav .nav-link { color: var(--qc-ink); font-weight: 500; font-size: .9rem; padding: .5rem .55rem !important; border-radius: .5rem; white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1299.98px) { .qc-mainnav .nav-link { font-size: .84rem; padding: .5rem .42rem !important; } .qc-brand { font-size: 1.2rem; } }
.qc-mainnav .nav-link:hover { background: var(--qc-cream-2); }
.qc-mainnav .nav-link.active { color: var(--qc-gold-dark); font-weight: 700; }
@media (max-width: 1199.98px) { .qc-navright { padding: .5rem 0 1rem; } }

/* Avatars */
.qc-avatar { border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qc-avatar-txt { background: var(--qc-green); color: #f3e7c9; font-weight: 700; }

/* Cards */
.qc-card { background: #fff; border: 1px solid var(--qc-line); border-radius: 1rem; box-shadow: 0 1px 2px rgba(31,58,36,.04); }
.qc-card-hover { transition: transform .15s, box-shadow .15s; }
.qc-card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31,58,36,.08); }
.qc-stat { font-family: "Fraunces", Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--qc-green); line-height: 1.1; }
.qc-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--qc-gold-dark); }
.qc-section { padding: 4.5rem 0; }
.qc-section-alt { background: #fff; border-top: 1px solid var(--qc-line); border-bottom: 1px solid var(--qc-line); }
.page-head { padding: 2.2rem 0 1rem; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--qc-green); }

/* Hero */
.qc-hero { background: radial-gradient(1200px 500px at 85% 0%, #efe3c4 0%, transparent 60%), linear-gradient(180deg, #fffdf8, var(--qc-cream)); padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--qc-line); }
.qc-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--qc-green); line-height: 1.08; }
.qc-hero .lead { font-size: 1.2rem; color: #4a4a3c; }
.qc-price-old { text-decoration: line-through; color: var(--qc-muted); font-size: 1.1rem; }
.qc-price-new { font-family: "Fraunces", Georgia, serif; font-size: 2.3rem; font-weight: 700; color: var(--qc-green); }
.qc-video { position: relative; padding-top: 56.25%; border-radius: 1rem; overflow: hidden; background: #000; }
.qc-video iframe, .qc-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qc-counter { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--qc-line); border-radius: 99px; padding: .45rem 1rem; font-weight: 600; }
.qc-counter .dot { width: 10px; height: 10px; border-radius: 50%; background: #2fa84f; box-shadow: 0 0 0 4px rgba(47,168,79,.2); }
.qc-check li { list-style: none; position: relative; padding-left: 1.8rem; margin-bottom: .45rem; }
.qc-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--qc-green); width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: .75rem; display: flex; align-items: center; justify-content: center; margin-top: .15rem; }
.qc-check { padding-left: 0; }
.qc-problem { border-left: 4px solid #c7472e; }
.qc-solution { border-left: 4px solid #2fa84f; }
.qc-value-table td { padding: .8rem .6rem; vertical-align: middle; }
.qc-value-table .val { font-weight: 700; color: var(--qc-muted); white-space: nowrap; }
.qc-pricebox { background: var(--qc-green); color: #fff; border-radius: 1.2rem; }
.qc-pricebox .qc-price-new { color: #f3e7c9; font-size: 3rem; }
.qc-pricebox .qc-price-old { color: #cfc6ad; }
.qc-steps .step { width: 3rem; height: 3rem; border-radius: 50%; background: var(--qc-gold); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; }
.qc-badge-enrolled { background: #e5f4e8; color: #1c6b31; font-weight: 600; font-size: .75rem; border-radius: 99px; padding: .15rem .55rem; }
.qc-stars { color: #e3a008; letter-spacing: 1px; }
.qc-stars .off { color: #d9d4c4; }
.qc-module-card { position: relative; }
.qc-module-card .num { font-family: "Fraunces", Georgia, serif; font-weight: 700; color: var(--qc-gold); font-size: 1.6rem; }
.qc-lock { position: absolute; top: .9rem; right: 1rem; font-size: 1.1rem; opacity: .7; }
.qc-path { border-top: 5px solid var(--qc-gold); }
.qc-cert-sample { border: 8px solid var(--qc-green); outline: 2px solid var(--qc-gold); outline-offset: -16px; background: #fcf9f1; padding: 2.2rem 1.5rem; text-align: center; border-radius: .4rem; }
.accordion-button:not(.collapsed) { background: var(--qc-cream-2); color: var(--qc-green); }
.accordion-button:focus { box-shadow: none; }

/* Forms */
.form-control, .form-select { border-color: #d9d1bc; }
.form-control:focus, .form-select:focus { border-color: var(--qc-gold); box-shadow: 0 0 0 .2rem rgba(176,141,60,.2); }
.form-label { font-weight: 600; font-size: .92rem; }
.form-text-warn { color: #9a5b00; font-size: .85rem; }
.qc-copy { cursor: pointer; }

/* Course */
.qc-progress { height: .6rem; background: var(--qc-cream-2); border-radius: 99px; }
.qc-progress .progress-bar { background: linear-gradient(90deg, var(--qc-gold), var(--qc-green)); border-radius: 99px; }
.qc-chip { display: inline-block; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 99px; }
.qc-chip-not_started { background: #eee9dc; color: #6b6453; }
.qc-chip-in_progress { background: #fff1d6; color: #8a5a00; }
.qc-chip-quiz_pending { background: #e0ecff; color: #1d4ea3; }
.qc-chip-passed { background: #e5f4e8; color: #1c6b31; }
.qc-chip-locked { background: #f1f1f1; color: #888; }
.qc-reader { font-size: 1.07rem; line-height: 1.75; }
.qc-reader .lead-point { font-size: 1.15rem; font-weight: 500; color: var(--qc-green); }
.qc-reader ul.qc-points li { margin-bottom: .55rem; }
.qc-reader h2, .qc-reader h3 { color: var(--qc-green); margin-top: 1.5rem; }
.qc-reader img { max-width: 100%; height: auto; border-radius: .6rem; }
.qc-fig { margin: 1.4rem 0; }
.qc-fig img { width: 100%; max-height: 480px; object-fit: cover; }
.qc-fig figcaption { font-size: .85rem; color: var(--qc-muted); margin-top: .4rem; }
.qc-fig-ph { aspect-ratio: 16/7; background: repeating-linear-gradient(45deg, #f6f0e0, #f6f0e0 12px, #efe6cf 12px, #efe6cf 24px); border-radius: .6rem; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--qc-muted); }
.qc-fig-ph span { font-size: 2rem; }
.qc-callout { border-radius: .6rem; padding: .9rem 1rem; margin: 1rem 0; font-size: .95rem; }
.qc-callout-warn { background: #fff6e0; border-left: 4px solid #e3a008; }
.qc-callout-info { background: #eaf2ff; border-left: 4px solid #3b82f6; }
.qc-sidenav .list-group-item { border-color: var(--qc-line); font-size: .92rem; }
.qc-sidenav .list-group-item.active { background: var(--qc-green); border-color: var(--qc-green); }
.qc-sidenav .tick { color: #2fa84f; font-weight: 700; }
.qc-quiz-q { border: 1px solid var(--qc-line); border-radius: .8rem; padding: 1.1rem 1.2rem; background: #fff; margin-bottom: 1rem; }
.qc-quiz-q .form-check { padding: .55rem .8rem .55rem 2.2rem; border-radius: .5rem; margin-bottom: .25rem; border: 1px solid transparent; }
.qc-quiz-q .form-check:hover { background: var(--qc-cream); border-color: var(--qc-line); }
.qc-timer { position: sticky; top: 80px; z-index: 5; }

/* Community */
.qc-post .qc-media-grid { display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.qc-post .qc-media-grid.one { grid-template-columns: 1fr; }
.qc-post .qc-media-grid img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: .5rem; cursor: zoom-in; aspect-ratio: 1; }
.qc-post .qc-media-grid.one img { aspect-ratio: auto; object-fit: contain; background: #f4f1ea; }
.qc-post video { width: 100%; max-height: 520px; border-radius: .5rem; background: #000; }
.qc-like.liked { color: #d0342c; }
.qc-comment { background: var(--qc-cream); border-radius: .7rem; padding: .5rem .8rem; }

/* Board */
.qc-board-list .list-group-item.active { background: var(--qc-green); border-color: var(--qc-green); }
.qc-chat { height: 60vh; min-height: 380px; overflow-y: auto; background: #fff; border: 1px solid var(--qc-line); border-radius: 1rem; padding: 1rem; }
.qc-msg { display: flex; gap: .6rem; margin-bottom: .9rem; }
.qc-msg .bubble { background: var(--qc-cream); border-radius: .2rem 1rem 1rem 1rem; padding: .5rem .8rem; max-width: 85%; }
.qc-msg.mine .bubble { background: #e9f3e6; }
.qc-msg .reply-to { font-size: .8rem; border-left: 3px solid var(--qc-gold); padding-left: .5rem; color: var(--qc-muted); margin-bottom: .3rem; }
.qc-msg .deleted { font-style: italic; color: #999; }
.qc-msg .replies { margin-top: .5rem; margin-left: 1rem; }

/* Shop */
.qc-listing-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: .8rem .8rem 0 0; background: var(--qc-cream-2); }
.qc-listing-ph { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--qc-cream-2); border-radius: .8rem .8rem 0 0; }
.qc-price { font-weight: 700; color: var(--qc-green); font-size: 1.1rem; }

/* FMS */
.qc-tabs .nav-link { color: var(--qc-ink); font-weight: 600; }
.qc-tabs .nav-link.active { color: var(--qc-gold-dark); border-bottom: 3px solid var(--qc-gold-dark); background: transparent; }
.qc-tabs { border-bottom: 1px solid var(--qc-line); flex-wrap: nowrap; overflow-x: auto; }
.qc-tabs .nav-link { border: 0; white-space: nowrap; }
.table-qc thead th { background: var(--qc-green); color: #fff; font-weight: 600; font-size: .85rem; }
.table-qc tr.current td { background: #fff6e0 !important; font-weight: 600; }
.qc-day { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: .6rem; background: var(--qc-cream-2); font-size: .7rem; margin: 2px; }
.qc-day b { font-size: 1rem; }
.qc-day.today { background: var(--qc-gold); color: #fff; }
.qc-day.lock { background: #e0ecff; }
.qc-day.hatch { background: #e5f4e8; }

/* Footer */
.qc-footer { background: var(--qc-green); color: #e8e3d3; }
.qc-footlinks a { color: #e8e3d3; text-decoration: none; }
.qc-footlinks a:hover { color: #fff; text-decoration: underline; }
.qc-footlinks li { margin-bottom: .35rem; }
.qc-wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 1030; }
.qc-wa-float:hover { transform: scale(1.06); }

/* Admin */
.qc-admin { background: #f5f3ee; }
.qc-admin-top { background: var(--qc-green); position: sticky; top: 0; z-index: 1030; }
.qc-admin-top .qc-brand { color: #f3e7c9; font-size: 1.1rem; }
.qc-admin-side { width: 240px; min-height: calc(100vh - 56px); background: #fff; border-right: 1px solid var(--qc-line); }
@media (min-width: 992px) { .qc-admin-side { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; } }
.qc-admin-side .nav-link { color: var(--qc-ink); padding: .5rem 1.1rem; font-size: .92rem; border-left: 3px solid transparent; }
.qc-admin-side .nav-link:hover { background: var(--qc-cream); }
.qc-admin-side .nav-link.active { background: var(--qc-cream-2); border-left-color: var(--qc-gold-dark); font-weight: 600; }
.qc-admin-main { min-width: 0; }
.qc-admin .table { font-size: .9rem; }
.qc-overdue { color: #c0392b; font-weight: 700; }
.qc-shot { max-width: 100%; max-height: 70vh; border: 1px solid var(--qc-line); border-radius: .5rem; }

@media (max-width: 575.98px) {
  .qc-section { padding: 3rem 0; }
  .qc-pricebox .qc-price-new { font-size: 2.4rem; }
}

/* Course image grids */
.qc-fig-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.qc-fig-grid .qc-fig { margin: 0; }
.qc-fig-grid .qc-fig img { aspect-ratio: 4/3; }
.qc-fig-grid .qc-fig-ph { aspect-ratio: 4/3; }
@media (max-width: 575.98px) { .qc-fig-grid { grid-template-columns: 1fr; } }
