@import url("https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;600;700&family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap");

:root {
  --qics-navy: #0B2D5C;
  --qics-navy-2: #08264f;
  --qics-gold: #C8A05A;
  --qics-bg: #F8F6F2;
  --qics-text: #1A1A1A;
  --qics-muted: #687184;
  --qics-white: #FFFFFF;
  --qics-border: rgba(11, 45, 92, 0.12);
  --qics-shadow: 0 18px 45px rgba(11, 45, 92, 0.10);
  --qics-soft-shadow: 0 10px 26px rgba(11, 45, 92, 0.08);
  --qics-radius: 8px;
  --qics-heading: "Playfair Display", Georgia, serif;
  --qics-body: "Poppins", Arial, sans-serif;
  --qics-urdu: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Jameel Noori Nastaleeq", serif;
}

.qics-system-page,
.qics-suite {
  background: var(--qics-bg);
  color: var(--qics-text);
  font-family: var(--qics-body);
}

.qics-system-page {
  overflow-x: hidden;
}

.qics-system-page *,
.qics-suite * {
  box-sizing: border-box;
}

.qics-system-page a,
.qics-suite a {
  color: inherit;
  text-decoration: none;
}

.qics-system-page svg,
.qics-suite svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qics-system-page main {
  min-height: 55vh;
}

.qics-menu-panel-head,
.qics-menu-label {
  display: none;
}

.qics-suite {
  overflow: hidden;
}

.qics-suite-section {
  padding: 86px 0;
  position: relative;
}

.qics-suite-section.qics-books-section {
  padding-top: 22px;
}

.qics-suite-section.is-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248,246,242,0.92));
}

.qics-suite-section.is-navy {
  background: var(--qics-navy);
  color: var(--qics-white);
}

.qics-suite-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.qics-suite-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  color: var(--qics-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qics-suite-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--qics-gold);
}

.qics-suite-title {
  margin: 0;
  color: var(--qics-navy);
  font-family: var(--qics-heading);
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
}

.is-navy .qics-suite-title,
.is-navy .qics-suite-copy,
.qics-page-hero .qics-suite-title {
  color: var(--qics-white);
}

.qics-suite-copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--qics-muted);
  font-size: 16px;
  line-height: 1.75;
}

.qics-suite-actions,
.qics-card-actions,
.qics-filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.qics-card-actions form {
  margin: 0;
}

.qics-ui-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--qics-radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.qics-ui-btn:hover {
  transform: translateY(-2px);
}

.qics-ui-btn.primary {
  background: var(--qics-navy);
  color: var(--qics-white);
  box-shadow: 0 14px 24px rgba(11, 45, 92, 0.18);
}

.qics-ui-btn.gold {
  background: var(--qics-gold);
  color: var(--qics-navy);
}

.qics-ui-btn.ghost {
  background: var(--qics-white);
  border-color: rgba(200, 160, 90, 0.5);
  color: var(--qics-navy);
}

.qics-centered-action {
  margin-top: 30px;
  text-align: center;
}

.qics-ui-btn.light {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.24);
  color: var(--qics-white);
}

.qics-ui-btn.block {
  width: 100%;
}

.qics-grid {
  display: grid;
  gap: 22px;
}

.qics-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qics-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qics-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qics-card {
  min-width: 0;
  background: var(--qics-white);
  border: 1px solid rgba(11, 45, 92, 0.08);
  border-radius: var(--qics-radius);
  box-shadow: var(--qics-soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.qics-card:hover {
  border-color: rgba(200,160,90,0.48);
  box-shadow: var(--qics-shadow);
  transform: translateY(-5px);
}

.qics-click-card {
  position: relative;
  cursor: pointer;
}

.qics-card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.qics-card-cover-link:focus-visible {
  outline: 3px solid rgba(200, 160, 90, 0.72);
  outline-offset: -4px;
}

.qics-click-card .qics-ui-btn {
  position: relative;
  z-index: 2;
}

.qics-card-pad {
  padding: 26px;
}

.qics-card-media,
.qics-book-cover,
.qics-video-thumb,
.qics-article-media {
  background:
    radial-gradient(circle at 18% 20%, rgba(200,160,90,0.28), transparent 28%),
    linear-gradient(135deg, rgba(11,45,92,0.96), rgba(11,45,92,0.74));
  color: var(--qics-white);
  border-radius: var(--qics-radius) var(--qics-radius) 0 0;
  min-height: 176px;
  position: relative;
  overflow: hidden;
}

.qics-card-media::after,
.qics-video-thumb::after,
.qics-article-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 6px;
}

.qics-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(200,160,90,0.15);
  color: var(--qics-gold);
  font-size: 12px;
  font-weight: 700;
}

.qics-card h3,
.qics-card h4 {
  margin: 12px 0 8px;
  color: var(--qics-navy);
  font-family: var(--qics-heading);
  line-height: 1.2;
}

.qics-card h3 {
  font-size: 24px;
}

.qics-card h4 {
  font-size: 20px;
}

.qics-card p {
  margin: 0 0 16px;
  color: var(--qics-muted);
  line-height: 1.65;
}

.qics-meta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  color: var(--qics-muted);
  font-size: 13px;
  font-weight: 600;
}

.qics-meta strong {
  color: var(--qics-navy);
}

.qics-progress {
  height: 8px;
  overflow: hidden;
  background: rgba(11,45,92,0.10);
  border-radius: 999px;
}

.qics-progress span {
  display: block;
  height: 100%;
  background: var(--qics-gold);
  border-radius: inherit;
}

.qics-book-cover {
  min-height: 246px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  text-align: center;
}

.qics-book-cover span {
  position: relative;
  z-index: 1;
  max-width: 170px;
  font-family: var(--qics-heading);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 800;
}

.qics-video-thumb {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.qics-certificate-preview {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--qics-border);
  background: rgba(11, 45, 92, 0.04);
}

.qics-certificate-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.qics-video-thumb.has-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(11,45,92,0.26), rgba(11,45,92,0.08));
}

.qics-video-thumb-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qics-video-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.qics-playlist-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.qics-playlist-controls {
  padding: 18px;
  border: 1px solid var(--qics-border);
  border-radius: var(--qics-radius);
  background: var(--qics-white);
  box-shadow: var(--qics-soft-shadow);
}

.qics-playlist-controls label {
  display: block;
  margin-bottom: 8px;
  color: var(--qics-navy);
  font-size: 13px;
  font-weight: 800;
}

.qics-playlist-select-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.qics-series-select {
  position: relative;
  width: 100%;
  z-index: 80;
}

.qics-series-select-toggle {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px;
  border: 1px solid var(--qics-border);
  border-radius: 8px;
  background: var(--qics-white);
  color: var(--qics-navy);
  font: 700 14px/1.35 var(--qics-body);
  text-align: left;
}

.qics-series-select-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qics-series-select-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  transition: transform 0.18s ease;
}

.qics-series-select.is-open .qics-series-select-toggle svg {
  transform: rotate(180deg);
}

.qics-series-select-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(11, 45, 92, 0.13);
  border-radius: 8px;
  background: var(--qics-white);
  box-shadow: 0 18px 42px rgba(11, 45, 92, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.qics-series-select.is-open .qics-series-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.qics-series-select-option,
.qics-series-select-state {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--qics-navy);
  font: 700 14px/1.6 var(--qics-body);
  text-align: left;
}

.qics-series-select-option {
  cursor: pointer;
}

.qics-series-select-option:hover,
.qics-series-select-option.is-active {
  background: rgba(11, 45, 92, 0.07);
}

.qics-series-select-state {
  color: var(--qics-muted);
}

.qics-rtl-text,
.qics-series-select-option.is-rtl,
.qics-series-select-toggle span.is-rtl {
  direction: rtl;
  font-family: var(--qics-urdu);
  line-height: 2;
  text-align: right;
}

.qics-card h3.qics-rtl-text,
.qics-playlist-heading h3.qics-rtl-text,
.qics-playlist-item strong.qics-rtl-text {
  font-family: var(--qics-urdu);
  line-height: 2;
  text-align: right;
}

.qics-playlist-heading > .has-rtl-title {
  width: 100%;
  text-align: right;
}

.qics-playlist-heading.has-rtl-title {
  justify-content: flex-end;
}

.qics-series-select-toggle span.is-rtl {
  width: 100%;
}

.qics-playlist-side,
.qics-playlist-main {
  min-width: 0;
}

.qics-playlist-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.qics-playlist-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 86px;
  padding: 9px;
  border: 1px solid var(--qics-border);
  border-radius: var(--qics-radius);
  background: var(--qics-white);
  color: var(--qics-navy);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--qics-soft-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qics-playlist-item:hover,
.qics-playlist-item.is-active {
  border-color: rgba(200, 160, 90, 0.56);
  box-shadow: 0 14px 34px rgba(11, 45, 92, 0.14);
  transform: translateY(-1px);
}

.qics-playlist-item img {
  width: 86px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(11, 45, 92, 0.08);
}

.qics-playlist-item strong {
  display: block;
  margin: 1px 0 5px;
  overflow: hidden;
  color: var(--qics-navy);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.qics-playlist-item span {
  display: block;
  color: var(--qics-muted);
  font-size: 12px;
  font-weight: 600;
}

.qics-playlist-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.qics-playlist-heading h3 {
  margin: 10px 0 0;
  color: var(--qics-navy);
  font-family: var(--qics-heading);
  font-size: 30px;
  line-height: 1.15;
}

.qics-playlist-state {
  padding: 18px;
  border: 1px solid var(--qics-border);
  border-radius: var(--qics-radius);
  background: var(--qics-white);
  color: var(--qics-muted);
  font-weight: 600;
  text-align: center;
}

.qics-video-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 15, 35, 0.82);
}

.qics-video-modal.is-open {
  display: flex;
}

.qics-video-modal-card {
  width: min(100%, 760px);
  overflow: hidden;
  border: 1px solid rgba(200, 160, 90, 0.45);
  border-radius: var(--qics-radius);
  background: var(--qics-white);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.qics-video-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 18px;
  color: var(--qics-navy);
}

.qics-video-modal-top strong {
  overflow: hidden;
  font-family: var(--qics-heading);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qics-video-modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgba(11, 45, 92, 0.1);
  color: var(--qics-navy);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.qics-video-modal-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.qics-video-modal-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.qics-video-thumb .play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--qics-white);
  color: var(--qics-navy);
  transform: translate(-50%, -50%);
  box-shadow: var(--qics-shadow);
}

.qics-video-thumb .play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.qics-article-media {
  min-height: 170px;
  display: flex;
  align-items: end;
  padding: 26px;
}

button.qics-article-media {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.qics-article-media span {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.86);
  font-weight: 700;
}

.qics-panel {
  background: var(--qics-white);
  border: 1px solid var(--qics-border);
  border-radius: var(--qics-radius);
  box-shadow: var(--qics-soft-shadow);
  padding: 28px;
}

.qics-panel h3 {
  margin: 0 0 16px;
  color: var(--qics-navy);
  font-family: var(--qics-heading);
  font-size: 26px;
}

.qics-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qics-list li {
  display: flex;
  gap: 10px;
  color: var(--qics-muted);
}

.qics-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--qics-gold);
}

.qics-curriculum-image {
  margin: 18px 0 28px;
}

.qics-curriculum-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, .08);
}

.qics-form {
  display: grid;
  gap: 16px;
}

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

.qics-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--qics-navy);
  font-size: 13px;
  font-weight: 700;
}

.qics-field input,
.qics-field select,
.qics-field textarea,
.qics-search-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(11,45,92,0.15);
  border-radius: var(--qics-radius);
  background: var(--qics-white);
  color: var(--qics-text);
  outline: none;
  padding: 0 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qics-field textarea {
  min-height: 138px;
  padding-top: 14px;
  resize: vertical;
}

.qics-field input:focus,
.qics-field select:focus,
.qics-field textarea:focus,
.qics-search-input:focus {
  border-color: var(--qics-gold);
  box-shadow: 0 0 0 4px rgba(200,160,90,0.14);
}

.qics-filter-row {
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--qics-white);
  border: 1px solid rgba(11,45,92,0.08);
  border-radius: var(--qics-radius);
  box-shadow: var(--qics-soft-shadow);
}

.qics-chip-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qics-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(11,45,92,0.12);
  border-radius: 999px;
  background: var(--qics-white);
  color: var(--qics-navy);
  font-size: 13px;
  font-weight: 700;
}

.qics-chip.is-active,
.qics-chip:hover {
  background: var(--qics-navy);
  color: var(--qics-white);
}

.qics-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.qics-pagination a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--qics-white);
  border: 1px solid var(--qics-border);
  color: var(--qics-navy);
  font-weight: 700;
}

.qics-pagination a.is-active,
.qics-pagination a:hover {
  background: var(--qics-navy);
  color: var(--qics-white);
}

.qics-page-hero {
  padding: 44px 0;
  background:
    linear-gradient(90deg, rgba(11,45,92,0.96), rgba(11,45,92,0.78)),
    url("../img/qics/qics-hero-scholar.png") center top/cover no-repeat;
  color: var(--qics-white);
}

.qics-page-hero .qics-suite-title {
  font-size: 34px;
  line-height: 1.08;
}

.qics-page-hero .qics-suite-copy {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.qics-course-hero .qics-suite-copy {
  max-width: 760px;
  color: rgba(255,255,255,0.84);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qics-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 4px;
  color: rgba(255,255,255,0.62);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
}

.qics-breadcrumb a,
.qics-breadcrumb span {
  display: inline-flex;
  align-items: center;
}

.qics-simple-breadcrumb {
  padding: 28px 0;
  background: #f2f2f2;
  color: var(--qics-navy);
  font-size: 22px;
  line-height: 1.4;
}

.qics-simple-breadcrumb .qics-container {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.qics-simple-breadcrumb a {
  color: var(--qics-navy);
}

.qics-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 30px;
}

.qics-sidebar {
  display: grid;
  gap: 20px;
  align-self: start;
}

.qics-timeline {
  display: grid;
  gap: 18px;
}

.qics-timeline-item {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  background: var(--qics-white);
  border: 1px solid var(--qics-border);
  border-radius: var(--qics-radius);
}

.qics-timeline-item time {
  color: var(--qics-gold);
  font-family: var(--qics-heading);
  font-size: 24px;
  font-weight: 800;
}

.qics-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.qics-mini-stat {
  padding: 22px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--qics-radius);
}

.qics-mini-stat strong {
  display: block;
  color: var(--qics-gold);
  font-family: var(--qics-heading);
  font-size: 34px;
  line-height: 1;
}

.qics-mini-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.78);
}

.qics-cta-band {
  padding: 46px;
  border-radius: var(--qics-radius);
  background:
    linear-gradient(120deg, rgba(11,45,92,0.96), rgba(11,45,92,0.84)),
    url("../img/qics/qics-hero-scholar.png") right center/auto 120% no-repeat;
  color: var(--qics-white);
  box-shadow: var(--qics-shadow);
}

.qics-cta-band h2 {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--qics-white);
  font-family: var(--qics-heading);
  font-size: 38px;
}

.qics-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 32px;
  align-items: center;
  padding: 38px;
  background: var(--qics-white);
  border: 1px solid var(--qics-border);
  border-radius: var(--qics-radius);
  box-shadow: var(--qics-soft-shadow);
}

.qics-newsletter form {
  display: flex;
  gap: 12px;
}

.qics-site-footer {
  background: var(--qics-navy);
  color: var(--qics-white);
  font-family: var(--qics-body);
}

.qics-footer-main {
  padding: 72px 0 44px;
}

.qics-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

.qics-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.qics-footer-logo {
  display: block;
  width: 146px;
  height: auto;
  border-radius: 6px;
  background: var(--qics-white);
}

.qics-footer-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200,160,90,0.45);
  border-radius: var(--qics-radius);
  color: var(--qics-gold);
  font-family: var(--qics-heading);
  font-size: 28px;
  font-weight: 800;
}

.qics-site-footer h3 {
  margin: 0 0 16px;
  color: var(--qics-white);
  font-family: var(--qics-heading);
  font-size: 22px;
}

.qics-site-footer p,
.qics-site-footer a,
.qics-site-footer li {
  color: rgba(255,255,255,0.78);
}

.qics-site-footer ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qics-footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.qics-footer-bottom-inner {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  text-align: center;
}

.qics-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 520px);
  background: var(--qics-bg);
}

.qics-auth-art {
  display: flex;
  align-items: end;
  padding: 58px;
  background:
    linear-gradient(120deg, rgba(11,45,92,0.94), rgba(11,45,92,0.66)),
    url("../img/qics/qics-hero-scholar.png") center/cover no-repeat;
  color: var(--qics-white);
}

.qics-auth-art h1 {
  max-width: 620px;
  color: var(--qics-white);
  font-family: var(--qics-heading);
  font-size: 54px;
  line-height: 1.08;
}

.qics-auth-card {
  align-self: center;
  margin: 40px;
  padding: 38px;
  background: var(--qics-white);
  border-radius: var(--qics-radius);
  box-shadow: var(--qics-shadow);
}

.qics-dashboard-shell {
  min-height: 100vh;
  background: var(--qics-bg);
}

.qics-portal-page .qics-topbar {
  display: none;
}

.qics-portal-page .qics-site-header {
  position: relative;
  z-index: 20;
}

.qics-portal-page .qics-main-header {
  background: var(--qics-white);
  border-bottom: 1px solid rgba(11,45,92,0.08);
}

.qics-portal-page .qics-main-header.is-stuck {
  position: relative;
  transform: none;
  animation: none;
}

.qics-student-sidebar {
  position: static;
  overflow: visible;
  padding: 24px 0 26px;
  background: var(--qics-navy);
  color: var(--qics-white);
}

.qics-portal-inner {
  width: min(100% - 64px, 1660px);
  margin: 0 auto;
}

.qics-portal-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.24);
}

.qics-portal-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255,255,255,0.92);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(200,160,90,0.18));
  color: var(--qics-navy);
  font-family: var(--qics-heading);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.qics-portal-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qics-portal-name-row h2 {
  margin: 0;
  color: var(--qics-white);
  font-family: var(--qics-body);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 700;
}

.qics-portal-name-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: var(--qics-navy);
  font-size: 14px;
  font-weight: 700;
}

.qics-portal-identity p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.88);
  font-size: 17px;
  font-weight: 500;
}

.qics-portal-actions {
  display: flex;
  justify-content: flex-end;
}

.qics-portal-actions .qics-ui-btn {
  min-width: 180px;
  min-height: 48px;
  font-size: 14px;
}

.qics-student-sidebar nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.qics-student-sidebar nav::-webkit-scrollbar {
  display: none;
}

.qics-student-sidebar a {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 0 6px;
  border-radius: 0;
  color: rgba(255,255,255,0.84);
  font-size: 15px;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

.qics-student-sidebar a.is-active,
.qics-student-sidebar a:hover {
  color: var(--qics-white);
}

.qics-student-sidebar a.is-active::after,
.qics-student-sidebar a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--qics-gold);
}

.qics-portal-pending {
  margin-left: auto;
  min-height: 36px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  background: var(--qics-gold);
  color: var(--qics-navy) !important;
  font-weight: 800 !important;
}

.qics-portal-pending::after {
  display: none;
}

.qics-student-sidebar .qics-sidebar-logout {
  color: var(--qics-white);
}

.qics-student-sidebar .qics-sidebar-logout:hover {
  color: var(--qics-gold);
}

.qics-dashboard-main {
  width: min(100% - 64px, 1660px);
  margin: 0 auto;
  padding: 44px 0 62px;
}

.qics-live-class {
  min-height: 100vh;
  background: #f8fafc;
}

.qics-live-top {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  background: var(--qics-white);
  border-bottom: 1px solid rgba(11, 45, 92, 0.1);
}

.qics-live-top h1 {
  margin: 0;
  color: var(--qics-navy);
  font-family: var(--qics-heading);
  font-size: 24px;
}

.qics-live-top p {
  margin: 4px 0 0;
  color: var(--qics-muted);
}

.qics-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.qics-dashboard-top h1 {
  margin: 0;
  color: var(--qics-navy);
  font-family: var(--qics-heading);
  font-size: 36px;
}

.qics-portal-stat-card .qics-card-pad {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}

.qics-portal-stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--qics-gold);
  font-size: 32px;
  line-height: 1;
}

.qics-portal-stat-card h3 {
  margin: 0;
  color: var(--qics-muted);
  font-family: var(--qics-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.qics-portal-stat-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(200,160,90,0.18);
  color: var(--qics-navy);
  font-size: 22px;
  font-weight: 800;
}

.qics-portal-course-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin-bottom: 28px;
}

.qics-portal-course-head h1 {
  margin: 8px 0 12px;
  color: var(--qics-navy);
  font-family: var(--qics-heading);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.qics-portal-course-head p {
  margin: 0;
  color: var(--qics-muted);
  line-height: 1.7;
}

.qics-portal-course-head .qics-card-actions {
  justify-content: flex-end;
}

.qics-library-section-head {
  margin-top: 34px;
}

.qics-table-wrap {
  overflow-x: auto;
}

.qics-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--qics-white);
  border-radius: var(--qics-radius);
  overflow: hidden;
}

.qics-table th,
.qics-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(11,45,92,0.08);
  text-align: left;
}

.qics-table th {
  color: var(--qics-navy);
  font-size: 13px;
  text-transform: uppercase;
}

.qics-ui-btn.compact {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.qics-course-lectures {
  margin-top: 0;
}

.qics-course-detail-layout {
  align-items: start;
}

.qics-course-detail-layout > .qics-panel,
.qics-course-detail-layout > .qics-sidebar {
  height: auto;
}

.qics-course-detail-layout > .qics-sidebar {
  align-self: start;
  grid-template-rows: none;
}

.qics-course-detail-layout > .qics-sidebar > .qics-panel {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.qics-course-action-card {
  display: grid;
  gap: 12px;
}

.qics-lecture-table td {
  vertical-align: middle;
}

.qics-lecture-table td strong {
  color: var(--qics-navy);
}

.qics-lecture-table td span {
  color: var(--qics-muted);
}

.qics-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 45, 92, 0.1);
  background: rgba(11, 45, 92, 0.06);
  color: var(--qics-navy);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.qics-status-pill.is-completed {
  background: rgba(31, 122, 78, 0.12);
  border-color: rgba(31, 122, 78, 0.2);
  color: #1f7a4e;
}

.qics-status-pill.is-active,
.qics-status-pill.is-paid {
  background: rgba(31, 122, 78, 0.12);
  border-color: rgba(31, 122, 78, 0.2);
  color: #1f7a4e;
}

.qics-status-pill.is-pending,
.qics-status-pill.is-pending_payment,
.qics-status-pill.is-unpaid {
  background: rgba(200, 160, 90, 0.16);
  border-color: rgba(200, 160, 90, 0.28);
  color: #8a610f;
}

.qics-status-pill.is-failed,
.qics-status-pill.is-expired,
.qics-status-pill.is-cancelled {
  background: rgba(180, 35, 24, 0.1);
  border-color: rgba(180, 35, 24, 0.18);
  color: #b42318;
}

.qics-status-pill.is-live {
  background: rgba(200, 160, 90, 0.18);
  border-color: rgba(200, 160, 90, 0.32);
  color: #8a6420;
}

.qics-status-pill.is-missed {
  background: rgba(132, 62, 62, 0.1);
  border-color: rgba(132, 62, 62, 0.18);
  color: #843e3e;
}

.qics-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 16, 32, 0.72);
}

.qics-modal.is-open {
  display: flex;
}

.qics-modal-card {
  width: min(100%, 820px);
  background: var(--qics-white);
  border-radius: var(--qics-radius);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  overflow: hidden;
}

.qics-modal-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--qics-navy);
  color: var(--qics-white);
}

.qics-modal-body {
  padding: 24px;
}

.qics-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  color: var(--qics-white);
}

@media (max-width: 1199px) {
  .qics-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qics-content-layout,
  .qics-newsletter,
  .qics-footer-grid,
  .qics-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .qics-course-detail-layout > .qics-panel,
  .qics-course-detail-layout > .qics-sidebar,
  .qics-course-detail-layout > .qics-sidebar > .qics-panel {
    height: auto;
  }

  .qics-course-detail-layout > .qics-sidebar {
    grid-template-rows: none;
  }

  .qics-course-detail-layout > .qics-sidebar > .qics-panel {
    justify-content: flex-start;
  }

  .qics-student-sidebar {
    padding: 24px 0 26px;
  }

  .qics-student-sidebar nav {
    gap: 10px 16px;
  }

  .qics-portal-profile {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .qics-portal-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  .qics-grid.cols-3,
  .qics-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qics-playlist-shell {
    grid-template-columns: 1fr;
  }

  .qics-playlist-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qics-suite-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .qics-auth-shell {
    grid-template-columns: 1fr;
  }

  .qics-auth-art {
    min-height: 360px;
  }
}

@media (max-width: 767px) {
  .qics-system-page .qics-container {
    width: calc(100% - 40px);
    max-width: 100%;
  }

  .qics-system-page .qics-topbar-inner {
    justify-content: center;
  }

  .qics-system-page .qics-topbar-message {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
  }

  .qics-system-page .qics-topbar-right {
    display: none;
  }

  .qics-suite-section {
    padding: 62px 0;
  }

  .qics-suite-title,
  .qics-cta-band h2 {
    font-size: 32px;
  }

  .qics-grid.cols-2,
  .qics-grid.cols-3,
  .qics-grid.cols-4,
  .qics-stat-grid,
  .qics-form-grid {
    grid-template-columns: 1fr;
  }

  .qics-card-pad,
  .qics-panel,
  .qics-cta-band,
  .qics-newsletter,
  .qics-auth-card {
    padding: 22px;
  }

  .qics-newsletter form,
  .qics-filter-row,
  .qics-playlist-heading,
  .qics-playlist-select-row,
  .qics-dashboard-top {
    flex-direction: column;
    align-items: stretch;
  }

  .qics-playlist-select-row .qics-ui-btn {
    width: 100%;
  }

  .qics-system-page .qics-grid,
  .qics-system-page .qics-card,
  .qics-system-page .qics-panel,
  .qics-system-page .qics-filter-row,
  .qics-system-page .qics-search-input {
    min-width: 0;
    max-width: 100%;
  }

  .qics-playlist-list {
    grid-template-columns: 1fr;
  }

  .qics-playlist-heading h3 {
    font-size: 25px;
  }

  .qics-system-page .qics-chip-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .qics-system-page .qics-chip {
    flex: 0 0 auto;
  }

  .qics-auth-art {
    min-height: 280px;
    padding: 28px;
  }

  .qics-auth-art h1 {
    font-size: 36px;
  }

  .qics-auth-card {
    margin: 16px;
  }

  .qics-dashboard-main {
    width: calc(100% - 36px);
    padding: 36px 0 48px;
  }

  .qics-student-sidebar nav {
    align-items: center;
    flex-direction: row;
    gap: 14px;
  }

  .qics-portal-inner {
    width: calc(100% - 36px);
  }

  .qics-portal-profile,
  .qics-portal-course-head,
  .qics-portal-stat-card .qics-card-pad {
    grid-template-columns: 1fr;
  }

  .qics-portal-avatar {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .qics-portal-name-row h2 {
    font-size: 30px;
  }

  .qics-portal-actions,
  .qics-portal-course-head .qics-card-actions {
    justify-content: stretch;
  }

  .qics-portal-actions .qics-ui-btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .qics-timeline-item {
    grid-template-columns: 1fr;
  }
}

.qics-system-page img,
.qics-system-page video,
.qics-system-page iframe,
.qics-system-page embed,
.qics-system-page object {
  max-width: 100%;
}

.qics-system-page img {
  height: auto;
}

.qics-system-page iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .qics-suite-section {
    padding: 72px 0;
  }

  .qics-card-pad,
  .qics-panel {
    padding: 24px;
  }

  .qics-newsletter form {
    flex-wrap: wrap;
  }

  .qics-ui-btn {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .qics-suite-head .qics-ui-btn,
  .qics-suite-actions .qics-ui-btn,
  .qics-card-actions .qics-ui-btn,
  .qics-newsletter .qics-ui-btn,
  .qics-form .qics-ui-btn,
  .qics-dashboard-top .qics-ui-btn {
    width: 100%;
  }

  .qics-card-actions form {
    width: 100%;
  }

  .qics-ui-btn {
    min-height: 50px;
    padding: 0 18px;
    white-space: normal;
    text-align: center;
  }

  .qics-suite-kicker {
    flex-wrap: wrap;
  }

  .qics-suite-title,
  .qics-cta-band h2 {
    font-size: clamp(28px, 9vw, 32px);
    overflow-wrap: break-word;
  }

  .qics-suite-copy,
  .qics-card h3,
  .qics-card h4,
  .qics-card p,
  .qics-panel h3,
  .qics-panel p,
  .qics-mini-stat span,
  .qics-footer-grid p,
  .qics-site-footer a,
  .qics-site-footer li {
    overflow-wrap: anywhere;
  }

  .qics-card h3 {
    font-size: clamp(22px, 7.2vw, 24px);
  }

  .qics-card h4,
  .qics-panel h3 {
    font-size: clamp(20px, 6.2vw, 22px);
  }

  .qics-book-cover span {
    font-size: clamp(20px, 6vw, 24px);
  }

  .qics-card-media,
  .qics-book-cover,
  .qics-article-media {
    min-height: 160px;
  }

  .qics-video-thumb {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .qics-filter-row {
    gap: 14px;
  }

  .qics-system-page .qics-chip-group,
  .qics-chip-group {
    max-width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .qics-system-page .qics-chip {
    flex: 0 1 auto;
  }

  .qics-pagination {
    flex-wrap: wrap;
  }

  .qics-page-hero {
    padding: 36px 0;
  }

  .qics-breadcrumb {
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 4px;
    font-size: 9px;
  }

  .qics-page-hero .qics-suite-title {
    font-size: 28px;
  }

  .qics-page-hero .qics-suite-copy {
    font-size: 13px;
  }

  .qics-cta-band {
    background-size: cover;
    background-position: center;
  }

  .qics-newsletter form {
    gap: 10px;
  }

  .qics-footer-main {
    padding: 52px 0 34px;
  }

  .qics-footer-bottom-inner {
    flex-direction: column;
  }

  .qics-auth-shell {
    min-height: auto;
  }

  .qics-auth-card {
    width: auto;
    max-width: 100%;
  }

  .qics-dashboard-main {
    min-width: 0;
  }

  .qics-table-wrap {
    overflow-x: visible;
  }

  .qics-table {
    min-width: 0;
    display: block;
    overflow: visible;
  }

  .qics-table thead {
    display: none;
  }

  .qics-table tbody,
  .qics-table tr,
  .qics-table td {
    display: block;
    width: 100%;
  }

  .qics-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(11,45,92,0.08);
  }

  .qics-table td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .qics-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--qics-navy);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .qics-table td:nth-child(1)::before {
    content: "Lecture";
  }

  .qics-table td:nth-child(2)::before {
    content: "Course";
  }

  .qics-table td:nth-child(3)::before {
    content: "Progress";
  }

  .qics-table td:nth-child(4)::before {
    content: "Action";
  }

  .qics-lecture-table td:nth-child(2)::before {
    content: "Schedule";
  }

  .qics-lecture-table td:nth-child(3)::before {
    content: "Duration";
  }

  .qics-lecture-table td:nth-child(4)::before {
    content: "Status";
  }

  .qics-lecture-table td:nth-child(5)::before {
    content: "Action";
  }

  .qics-modal-card {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
}

@media (max-width: 479px) {
  .qics-system-page .qics-container {
    width: calc(100% - 24px);
  }

  .qics-suite-section {
    padding: 48px 0;
  }

  .qics-page-hero {
    padding: 32px 0;
  }

  .qics-card-pad,
  .qics-panel,
  .qics-cta-band,
  .qics-newsletter,
  .qics-auth-card {
    padding: 18px;
  }

  .qics-ui-btn {
    min-height: 48px;
    padding: 0 16px;
  }

  .qics-auth-art {
    min-height: 240px;
    padding: 22px;
  }

  .qics-auth-art h1 {
    font-size: 32px;
  }

  .qics-dashboard-main {
    padding: 14px;
  }

  .qics-modal {
    padding: 12px;
  }

  .qics-modal-body {
    padding: 18px;
  }
}

@media (max-width: 359px) {
  .qics-system-page .qics-container {
    width: calc(100% - 20px);
  }

  .qics-suite-title,
  .qics-cta-band h2 {
    font-size: 27px;
  }

  .qics-card-pad,
  .qics-panel,
  .qics-cta-band,
  .qics-newsletter,
  .qics-auth-card {
    padding: 16px;
  }

  .qics-mini-stat strong {
    font-size: 30px;
  }
}

.qics-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7,166,152,0.25);
  border-radius: 8px;
  color: var(--qics-navy);
  background: #fff;
}

.qics-cart-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.qics-cart-link span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ed-color-theme-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.qics-shop-filter,
.qics-cart-layout,
.qics-product-layout {
  display: grid;
  gap: 24px;
}

.qics-shop-filter {
  grid-template-columns: minmax(220px, 1fr) 220px 220px auto;
  align-items: center;
  margin-bottom: 30px;
}

.qics-shop-filter select,
.qics-search-input,
.qics-qty {
  min-height: 48px;
  border: 1px solid rgba(11,45,92,0.12);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--qics-navy);
}

.qics-product-image,
.qics-product-main-image {
  width: 100%;
  object-fit: cover;
  background: #f4f7f6;
}

.qics-product-image {
  aspect-ratio: 4 / 5;
}

.qics-product-main-image {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}

.qics-product-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
}

.qics-product-gallery,
.qics-buy-panel,
.qics-summary-panel {
  min-width: 0;
}

.qics-book-cover.large {
  min-height: 520px;
}

.qics-thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.qics-thumb-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.qics-option-list {
  display: grid;
  gap: 10px;
}

.qics-option-list label,
.qics-summary-panel p,
.qics-price-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.qics-option-list label {
  border: 1px solid rgba(11,45,92,0.12);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--qics-navy);
}

.qics-stock.in {
  color: #0b8f55;
  font-weight: 800;
}

.qics-stock.out,
.qics-alert {
  color: #b42318;
  font-weight: 800;
}

.qics-success {
  color: #1f7a4e;
  font-weight: 800;
}

.qics-payment-success-banner {
  margin-bottom: 22px;
  border-color: rgba(31, 122, 78, 0.16);
  background: rgba(31, 122, 78, 0.07);
}

.qics-payment-success-banner h3 {
  margin-bottom: 6px;
  color: #1f7a4e;
}

.qics-payment-success-banner p {
  margin-bottom: 0;
}

.qics-pdf-policy-copy {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 122, 78, 0.16);
  color: var(--qics-navy);
  font-size: 13px;
  line-height: 1.55;
}

.qics-pdf-policy-copy strong {
  color: #1f7a4e;
}

.qics-pdf-policy-notice {
  margin-bottom: 22px;
  border-color: rgba(180, 35, 24, 0.16);
  background: rgba(180, 35, 24, 0.05);
}

.qics-pdf-policy-notice h3 {
  margin-bottom: 7px;
  color: #8a1f16;
}

.qics-pdf-policy-notice p,
.qics-pdf-card-policy {
  color: #6f2a23;
  font-size: 13px;
  line-height: 1.55;
}

.qics-pdf-policy-notice p {
  margin-bottom: 0;
}

.qics-pdf-card-policy {
  margin-top: -6px !important;
  padding: 9px 10px;
  border-radius: 6px;
  background: rgba(180, 35, 24, 0.06);
}

.qics-payment-success-card {
  width: min(100%, 460px);
}

.qics-payment-success-card .qics-modal-body {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.qics-payment-success-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1f7a4e;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.qics-payment-success-card h3 {
  margin: 4px 0 0;
  color: var(--qics-navy);
}

.qics-payment-success-card p {
  margin: 0;
  color: var(--qics-muted);
}

.qics-muted {
  color: var(--ed-color-text-body);
  font-size: 14px;
}

.qics-cart-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.qics-checkout-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.qics-checkout-form .qics-order-notes {
  min-height: 76px;
  height: 76px;
}

.qics-payment-panel .qics-option-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
}

.qics-payment-panel .qics-option-list input {
  grid-row: 1 / span 2;
}

.qics-payment-panel .qics-option-list strong {
  color: var(--qics-muted);
  font-size: 12px;
  line-height: 1.35;
}

.qics-cart-table .qics-qty {
  width: 86px;
}

.qics-link-button {
  border: 0;
  background: transparent;
  color: #b42318;
  font-weight: 800;
}

.qics-user-menu {
  position: relative;
  flex: 0 0 auto;
  z-index: 80;
}

.qics-user-trigger {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(11, 45, 92, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--qics-navy);
  box-shadow: 0 14px 32px rgba(11, 45, 92, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.qics-user-menu.is-open .qics-user-trigger,
.qics-user-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 160, 90, 0.45);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 44px rgba(11, 45, 92, 0.14);
}

.qics-user-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--qics-navy), #174a8f 55%, var(--qics-gold));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 20px rgba(11, 45, 92, 0.2);
  overflow: visible;
}

.qics-user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.qics-user-avatar > span {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.qics-user-avatar i {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.qics-user-avatar.large {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
}

.qics-user-summary {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.qics-user-summary strong {
  max-width: 136px;
  overflow: hidden;
  color: var(--qics-navy);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qics-user-summary small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0b8f55;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.qics-user-summary small svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qics-user-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--qics-gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.qics-user-menu.is-open .qics-user-chevron {
  transform: rotate(180deg);
}

.qics-user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 286px;
  padding: 10px;
  border: 1px solid rgba(11, 45, 92, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(11, 45, 92, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@media (max-width: 479px) {
  .qics-user-trigger {
    gap: 9px;
    padding-right: 10px;
  }

  .qics-user-summary strong {
    max-width: 112px;
  }

  .qics-user-dropdown {
    width: min(286px, calc(100vw - 34px));
  }
}

.qics-user-menu.is-open .qics-user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.qics-user-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(11, 45, 92, 0.1);
  border-top: 1px solid rgba(11, 45, 92, 0.1);
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
}

.qics-user-dropdown-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11,45,92,0.08), rgba(200,160,90,0.12));
}

.qics-user-dropdown-head strong,
.qics-user-dropdown-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qics-user-dropdown-head strong {
  color: var(--qics-navy);
  font-size: 14px;
  font-weight: 900;
}

.qics-user-dropdown-head small {
  color: var(--ed-color-text-body);
  font-size: 12px;
  font-weight: 600;
}

.qics-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 11px;
  color: var(--qics-navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.qics-user-dropdown a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qics-user-dropdown a:hover {
  color: var(--qics-navy);
  background: rgba(11, 45, 92, 0.07);
  transform: translateX(2px);
}

.qics-user-dropdown .is-logout {
  margin-top: 6px;
  color: #b42318;
  background: rgba(180, 35, 24, 0.06);
}

body.qics-home .qics-search,
body.qics-system-page .qics-search {
  flex: 0 0 clamp(220px, 18vw, 330px);
  min-width: 220px;
}

body.qics-home .qics-search input,
body.qics-system-page .qics-search input {
  flex: 1 1 auto;
  min-width: 0;
}

body.qics-home .qics-search button,
body.qics-system-page .qics-search button {
  flex: 0 0 54px;
}

@media (max-width: 991px) {
  .qics-shop-filter,
  .qics-product-layout,
  .qics-cart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1199px) {
  body.qics-home .qics-site-header,
  body.qics-system-page .qics-site-header {
    z-index: 1000;
  }

  body.qics-home .qics-main-header,
  body.qics-system-page .qics-main-header {
    z-index: 1001;
  }

  body.qics-home .qics-nav-shell,
  body.qics-system-page .qics-nav-shell {
    min-height: 76px;
    padding-right: 58px;
    position: relative;
  }

  body.qics-home .qics-menu-toggle,
  body.qics-system-page .qics-menu-toggle {
    display: inline-flex !important;
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1003;
    transform: translateY(-50%);
    pointer-events: auto;
  }

  body.qics-home .qics-menu-panel,
  body.qics-system-page .qics-menu-panel {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 1002;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(11, 45, 92, 0.1);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 22px 48px rgba(11, 45, 92, 0.16);
  }

  body.qics-home .qics-menu-panel.is-open,
  body.qics-system-page .qics-menu-panel.is-open {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body.qics-home .qics-nav-list,
  body.qics-system-page .qics-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.qics-home .qics-nav-list a,
  body.qics-system-page .qics-nav-list a {
    min-height: 44px;
    width: 100%;
    padding: 11px 12px;
    white-space: normal;
    background: rgba(248, 246, 242, 0.85);
    border: 1px solid rgba(11, 45, 92, 0.08);
    border-radius: 8px;
  }

  body.qics-home .qics-nav-list a::after,
  body.qics-system-page .qics-nav-list a::after {
    display: none;
  }

  body.qics-home .qics-header-actions,
  body.qics-system-page .qics-header-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
  }

  body.qics-home .qics-search,
  body.qics-system-page .qics-search {
    width: 50px;
    flex: 0 0 50px;
    min-width: 0;
    height: 50px;
    grid-column: auto;
  }

  body.qics-home .qics-search input,
  body.qics-system-page .qics-search input {
    width: 1px;
    min-width: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }

  body.qics-home .qics-search button,
  body.qics-system-page .qics-search button {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
  }

  body.qics-home .qics-header-cta,
  body.qics-system-page .qics-header-cta,
  body.qics-home .qics-header-logout,
  body.qics-system-page .qics-header-logout {
    width: 100%;
    min-height: 50px;
  }

  body.qics-home .qics-user-menu,
  body.qics-system-page .qics-user-menu,
  body.qics-home .qics-user-trigger,
  body.qics-system-page .qics-user-trigger {
    width: 100%;
  }

  body.qics-home .qics-user-trigger,
  body.qics-system-page .qics-user-trigger {
    justify-content: flex-start;
    min-height: 50px;
  }

  body.qics-home .qics-header-logout,
  body.qics-system-page .qics-header-logout {
    padding: 0 14px;
  }
}

@media (max-width: 767px) {
  body.qics-home,
  body.qics-system-page {
    min-width: 320px;
    overflow-x: hidden;
  }

  body.qics-home .qics-container,
  body.qics-system-page .qics-container {
    width: calc(100% - 24px);
    max-width: 100%;
  }

  body.qics-home .qics-topbar-inner,
  body.qics-system-page .qics-topbar-inner {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  body.qics-home .qics-topbar-message,
  body.qics-system-page .qics-topbar-message {
    justify-content: center;
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
  }

  body.qics-home .qics-nav-shell,
  body.qics-system-page .qics-nav-shell {
    min-height: 68px;
    gap: 10px;
    padding-right: 50px;
  }

  body.qics-home .qics-brand,
  body.qics-system-page .qics-brand {
    min-width: 0;
    gap: 8px;
  }

  body.qics-home .qics-brand-logo,
  body.qics-system-page .qics-brand-logo {
    height: 50px;
    max-width: 66px;
  }

  body.qics-home .qics-brand-mark,
  body.qics-system-page .qics-brand-mark {
    width: 46px;
    height: 36px;
  }

  body.qics-home .qics-brand-mark svg,
  body.qics-system-page .qics-brand-mark svg {
    width: 46px;
    height: 36px;
  }

  body.qics-home .qics-brand-copy,
  body.qics-system-page .qics-brand-copy {
    min-width: 0;
  }

  body.qics-home .qics-brand-copy strong,
  body.qics-system-page .qics-brand-copy strong {
    font-size: 21px;
  }

  body.qics-home .qics-brand-copy span,
  body.qics-system-page .qics-brand-copy span {
    font-size: 14px;
  }

  body.qics-home .qics-brand-copy em,
  body.qics-system-page .qics-brand-copy em {
    display: none;
  }

  body.qics-home .qics-menu-toggle,
  body.qics-system-page .qics-menu-toggle {
    width: 42px;
    height: 42px;
  }

  body.qics-home .qics-menu-panel,
  body.qics-system-page .qics-menu-panel {
    left: -12px;
    right: -12px;
    width: auto;
    max-height: calc(100dvh - 76px);
    padding: 14px;
    border-radius: 0 0 12px 12px;
  }

  body.qics-home .qics-nav-list,
  body.qics-system-page .qics-nav-list,
  body.qics-home .qics-header-actions,
  body.qics-system-page .qics-header-actions {
    grid-template-columns: auto auto minmax(92px, 1fr);
  }

  body.qics-home .qics-cart-link,
  body.qics-system-page .qics-cart-link,
  body.qics-home .qics-header-cta,
  body.qics-system-page .qics-header-cta,
  body.qics-home .qics-header-logout,
  body.qics-system-page .qics-header-logout {
    grid-column: auto;
  }

  body.qics-home .qics-cart-link,
  body.qics-system-page .qics-cart-link {
    width: 50px;
    height: 50px;
  }

  body.qics-home .qics-hero {
    min-height: 0;
    padding-top: 0;
    background-size: auto 290px;
    background-position: 58% top;
  }

  body.qics-home .qics-hero-inner {
    min-height: 500px;
    display: block;
  }

  body.qics-home .qics-hero-copy {
    max-width: 100%;
    padding: 42px 0 34px;
  }

  body.qics-home .qics-eyebrow {
    max-width: min(330px, 88vw);
    font-size: 15px;
  }

  body.qics-home .qics-hero h1 {
    max-width: min(330px, 88vw);
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.06;
  }

  body.qics-home .qics-founder {
    display: block;
    max-width: min(330px, 88vw);
    margin-bottom: 14px;
    font-size: clamp(22px, 7vw, 28px);
  }

  body.qics-home .qics-founder span {
    display: none;
  }

  body.qics-home .qics-description {
    max-width: min(330px, 88vw);
    font-size: clamp(12px, 3.4vw, 15px);
    line-height: 1.45;
  }

  body.qics-home .qics-book-line {
    max-width: min(330px, 88vw);
    font-size: clamp(21px, 6.7vw, 28px);
    line-height: 1.16;
  }

  body.qics-home .qics-feature-grid,
  body.qics-home .qics-category-grid,
  body.qics-home .qics-stats-panel,
  body.qics-home .qics-grid.cols-2,
  body.qics-home .qics-grid.cols-3,
  body.qics-home .qics-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  body.qics-home .qics-feature-card {
    min-height: 96px;
  }

  body.qics-home .qics-feature-grid {
    margin-top: 24px;
    width: 100%;
    max-width: none;
  }

  body.qics-home .qics-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.qics-home .qics-hero-actions .qics-btn {
    width: 100%;
  }

  body.qics-home .qics-stat-item {
    min-height: 0;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
  }

  body.qics-home .qics-category-card {
    min-height: 0;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
  }

  body.qics-home .qics-suite-head {
    gap: 18px;
  }

  body.qics-home .qics-suite-section {
    padding: 52px 0;
  }
}

@media (max-width: 380px) {
  body.qics-home .qics-brand-copy strong,
  body.qics-system-page .qics-brand-copy strong {
    font-size: 19px;
  }

  body.qics-home .qics-brand-copy span,
  body.qics-system-page .qics-brand-copy span {
    font-size: 13px;
  }

  body.qics-home .qics-hero {
    background-size: auto 255px;
    background-position: 58% top;
  }

  body.qics-home .qics-hero-inner {
    min-height: 475px;
  }

  body.qics-home .qics-feature-grid {
    margin-top: 24px;
  }
}

.qics-auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
  align-items: stretch;
}

.qics-auth-art {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  padding: clamp(36px, 5vw, 78px);
}

.qics-auth-card {
  width: min(460px, calc(100% - 48px));
  justify-self: center;
  align-self: center;
  margin: 0;
  padding: clamp(30px, 3vw, 44px);
}

.qics-auth-card .qics-suite-title {
  margin-bottom: 12px;
  font-size: clamp(36px, 3.2vw, 48px);
}

.qics-auth-card .qics-suite-copy {
  margin-bottom: 18px;
}

.qics-auth-card .qics-form {
  display: grid;
  gap: 16px;
}

.qics-auth-card .qics-field {
  display: grid;
  gap: 8px;
}

.qics-auth-card .qics-field input {
  min-height: 52px;
}

.qics-auth-card > p:last-child {
  margin: 12px 0 0;
  text-align: center;
}

@media (max-width: 991px) {
  .qics-auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .qics-auth-art {
    min-height: 280px;
    padding: 34px 28px;
  }

  .qics-auth-card {
    width: min(520px, calc(100% - 32px));
    margin: 22px auto 34px;
  }
}

@media (max-width: 767px) {
  .qics-auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .qics-auth-art {
    min-height: 220px;
    padding: 26px 20px;
  }

  .qics-auth-art h1 {
    font-size: clamp(30px, 10vw, 38px);
  }

  .qics-auth-card {
    width: calc(100% - 24px);
    margin: 16px auto 28px;
    padding: 22px;
  }

  .qics-auth-card .qics-suite-title {
    font-size: clamp(31px, 10vw, 38px);
  }

  .qics-auth-card > p:last-child {
    line-height: 1.7;
  }
}

@media (max-width: 420px) {
  .qics-auth-art {
    min-height: 190px;
  }

  .qics-auth-card {
    padding: 18px;
  }

  .qics-auth-card .qics-field input {
    min-height: 48px;
  }
}

.qics-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(90deg, rgba(11,45,92,0.78) 0%, rgba(11,45,92,0.74) 46%, rgba(11,45,92,0.64) 100%),
    url("../img/qics/qics-hero-scholar.png") center right/cover fixed no-repeat;
}

.qics-login-shell,
.qics-register-shell {
  display: grid;
  grid-template-columns: minmax(360px, 620px) minmax(0, 1fr);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(22px, 4vw, 64px);
  background: transparent;
}

.qics-login-shell .qics-auth-art,
.qics-register-shell .qics-auth-art {
  display: none;
}

.qics-login-shell .qics-auth-card,
.qics-register-shell .qics-auth-card {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 520px);
  justify-self: start;
  align-self: center;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--qics-white);
  border: 1px solid rgba(11, 45, 92, 0.08);
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(4, 18, 42, 0.22);
}

.qics-login-shell .qics-auth-card {
  width: min(100%, 460px);
}

.qics-register-shell .qics-auth-card {
  width: min(100%, 540px);
}

.qics-login-shell .qics-auth-card .qics-suite-title,
.qics-register-shell .qics-auth-card .qics-suite-title {
  font-size: clamp(38px, 3.2vw, 52px);
  line-height: 1.05;
}

.qics-login-shell .qics-auth-card .qics-suite-copy,
.qics-register-shell .qics-auth-card .qics-suite-copy {
  max-width: 380px;
}

.qics-login-shell .qics-auth-card .qics-form,
.qics-register-shell .qics-auth-card .qics-form {
  gap: 14px;
}

.qics-login-shell .qics-auth-card .qics-field input,
.qics-register-shell .qics-auth-card .qics-field input,
.qics-register-shell .qics-auth-card .qics-field textarea {
  min-height: 50px;
  border-radius: 8px;
}

.qics-register-shell .qics-auth-card .qics-field textarea {
  min-height: 86px;
}

.qics-login-shell .qics-auth-card .qics-ui-btn,
.qics-register-shell .qics-auth-card .qics-ui-btn {
  min-height: 52px;
  border-radius: 8px;
}

@media (max-width: 991px) {
  .qics-login-shell,
  .qics-register-shell {
    grid-template-columns: minmax(320px, 540px) minmax(0, 1fr);
  }

  .qics-login-shell .qics-auth-card,
  .qics-register-shell .qics-auth-card {
    padding: 34px 22px;
  }
}

@media (max-width: 767px) {
  .qics-login-shell,
  .qics-register-shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .qics-register-shell .qics-auth-card,
  .qics-login-shell .qics-auth-card {
    width: min(100%, 520px);
    justify-self: center;
    padding: 26px 18px;
  }

  .qics-register-shell .qics-auth-card .qics-suite-title,
  .qics-login-shell .qics-auth-card .qics-suite-title {
    font-size: clamp(31px, 9vw, 40px);
  }
}

@media (max-width: 420px) {
  .qics-register-shell .qics-auth-card,
  .qics-login-shell .qics-auth-card {
    padding: 18px;
  }
}

body.qics-home .qics-slider-shell {
  width: 100%;
  min-width: 0;
  position: relative;
}

body.qics-home .qics-suite-section {
  padding: 54px 0 58px;
  background: var(--qics-bg);
}

body.qics-home .qics-suite-section + .qics-suite-section {
  padding-top: 34px;
}

body.qics-home .qics-suite-head {
  margin-bottom: 22px;
}

body.qics-home .qics-slider-feature {
  width: min(900px, 100%);
  margin: 28px 0 40px;
}

body.qics-home .qics-slider-category {
  margin-top: 8px;
}

body.qics-home .qics-stats-panel .qics-slider-shell {
  overflow: hidden;
  border-radius: inherit;
}

body.qics-home .qics-card-slider {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 4px 4px 10px;
}

body.qics-home .qics-slider-content .qics-card-slider,
body.qics-home .qics-slider-category .qics-card-slider {
  padding-inline: 6px;
}

body.qics-home .qics-slider-stats .qics-card-slider {
  padding: 0;
}

body.qics-home .qics-card-slider .swiper-wrapper {
  align-items: stretch;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.qics-home .qics-card-slider .swiper-slide {
  height: auto;
  display: flex;
}

body.qics-home .qics-card-slider .swiper-slide > * {
  width: 100%;
}

body.qics-home .qics-slider-content .qics-card,
body.qics-home .qics-slider-feature .qics-feature-card,
body.qics-home .qics-slider-category .qics-category-card,
body.qics-home .qics-slider-stats .qics-stat-item {
  height: 100%;
}

body.qics-home .qics-slider-content .qics-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0.52;
  transform: translateY(12px) scale(0.965);
  transform-origin: center bottom;
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  will-change: opacity, transform;
}

body.qics-home .qics-slider-content .swiper-slide-visible .qics-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.qics-home .qics-slider-content .swiper-slide-visible .qics-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 46px rgba(11, 45, 92, 0.15);
}

body.qics-home .qics-slider-content .qics-card-pad {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.qics-home .qics-slider-content .qics-card p {
  flex: 1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

body.qics-home .qics-slider-content .qics-card .qics-meta {
  margin-bottom: 16px;
}

body.qics-home .qics-slider-content .qics-card .qics-ui-btn {
  margin-top: auto;
  align-self: flex-start;
}

body.qics-home #featured-books .qics-card-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

body.qics-home #featured-books .qics-card-actions form {
  width: 100%;
  display: flex;
}

body.qics-home #featured-books .qics-card-actions > :only-child {
  grid-column: 1 / -1;
}

body.qics-home #featured-books .qics-card-actions .qics-ui-btn {
  width: 100%;
  margin-top: 0;
  align-self: stretch;
}

body.qics-home .qics-slider-feature .qics-feature-icon,
body.qics-home .qics-slider-category .qics-category-icon {
  color: var(--qics-navy);
}

body.qics-home .qics-slider-feature .swiper-slide:nth-child(odd) .qics-feature-icon,
body.qics-home .qics-slider-category .swiper-slide:nth-child(even) .qics-category-icon {
  color: var(--qics-gold);
}

body.qics-home .qics-slider-stats .qics-stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
}

body.qics-home .qics-slider-controls {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

body.qics-home .qics-slider-stats .qics-slider-controls {
  margin-top: 0;
  padding: 0 18px 18px;
}

body.qics-home .qics-slider-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--qics-navy);
  background: var(--qics-white);
  border: 1px solid rgba(11, 45, 92, 0.12);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(11, 45, 92, 0.12);
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body.qics-home .qics-slider-btn:hover {
  color: var(--qics-white);
  background: var(--qics-navy);
  border-color: var(--qics-navy);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(11, 45, 92, 0.18);
}

body.qics-home .qics-slider-stats .qics-slider-btn {
  color: var(--qics-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

body.qics-home .qics-slider-stats .qics-slider-btn:hover {
  color: var(--qics-navy);
  background: var(--qics-gold);
  border-color: var(--qics-gold);
}

body.qics-home .qics-slider-btn.swiper-button-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

body.qics-home .qics-slider-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.qics-home .qics-slider-pagination {
  width: auto !important;
  min-width: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: static;
}

body.qics-home .qics-slider-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  opacity: 1;
  background: rgba(11, 45, 92, 0.24);
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

body.qics-home .qics-slider-pagination .swiper-pagination-bullet-active {
  width: 24px;
  background: var(--qics-gold);
}

body.qics-home .qics-slider-stats .qics-slider-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.34);
}

body.qics-home .qics-slider-stats .qics-slider-pagination .swiper-pagination-bullet-active {
  background: var(--qics-gold);
}

@media (max-width: 1199px) {
  body.qics-home .qics-slider-feature {
    width: 100%;
  }

  body.qics-home .qics-slider-category .qics-category-card {
    min-height: 168px;
  }
}

@media (max-width: 767px) {
  body.qics-home .qics-slider-feature {
    margin: 24px 0 28px;
  }

  body.qics-home .qics-card-slider,
  body.qics-home .qics-slider-content .qics-card-slider,
  body.qics-home .qics-slider-category .qics-card-slider {
    padding-inline: 2px;
  }

  body.qics-home .qics-slider-controls {
    gap: 10px;
    margin-top: 12px;
  }

  body.qics-home .qics-slider-stats .qics-slider-controls {
    padding-bottom: 14px;
  }

  body.qics-home .qics-slider-stats .qics-stat-item {
    border-right: 0;
  }

  body.qics-home .qics-slider-btn {
    width: 38px;
    height: 38px;
  }

  body.qics-home .qics-slider-pagination {
    min-width: 68px;
    gap: 7px;
  }

  body.qics-home .qics-slider-content .qics-card .qics-ui-btn {
    width: 100%;
  }

body.qics-home .qics-slider-content .qics-card p {
    -webkit-line-clamp: 4;
  }
}

body.qics-home .qics-nav-shell,
body.qics-system-page .qics-nav-shell {
  min-height: 82px;
  gap: 28px;
}

body.qics-home .qics-brand-logo,
body.qics-system-page .qics-brand-logo {
  width: 76px;
  max-width: 76px;
  height: auto;
}

body.qics-home .qics-header-actions,
body.qics-system-page .qics-header-actions {
  gap: 10px;
}

body.qics-home .qics-cart-link,
body.qics-system-page .qics-cart-link {
  width: 48px;
  height: 48px;
}

body.qics-home .qics-header-cta,
body.qics-system-page .qics-header-cta,
body.qics-home .qics-header-logout,
body.qics-system-page .qics-header-logout {
  min-height: 48px;
  padding-inline: 24px;
  border-radius: 8px;
}

.qics-footer-logo {
  width: 120px;
  background: transparent;
  border-radius: 0;
}

@media (max-width: 1199px) {
  body.qics-home .qics-nav-shell,
  body.qics-system-page .qics-nav-shell {
    min-height: 68px;
  }

  body.qics-home .qics-brand-logo,
  body.qics-system-page .qics-brand-logo {
    width: 58px;
    max-width: 58px;
  }
}

@media (max-width: 767px) {
  body.qics-home .qics-nav-shell,
  body.qics-system-page .qics-nav-shell {
    min-height: 62px;
  }

  body.qics-home .qics-brand-logo,
  body.qics-system-page .qics-brand-logo {
    width: 50px;
    max-width: 50px;
  }

  body.qics-home .qics-cart-link,
  body.qics-system-page .qics-cart-link,
  body.qics-home .qics-header-cta,
  body.qics-system-page .qics-header-cta,
  body.qics-home .qics-header-logout,
  body.qics-system-page .qics-header-logout {
    min-height: 44px;
  }
}

@media (max-width: 1199px) {
  body.qics-nav-open {
    overflow: hidden;
  }

  body.qics-home .qics-menu-backdrop,
  body.qics-system-page .qics-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: block;
    border: 0;
    background: rgba(6, 20, 45, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  body.qics-home .qics-menu-backdrop[hidden],
  body.qics-system-page .qics-menu-backdrop[hidden] {
    display: none;
  }

  body.qics-home .qics-menu-toggle,
  body.qics-system-page .qics-menu-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1005;
    border: 1px solid rgba(11, 45, 92, 0.12);
    background: #fff;
    box-shadow: 0 14px 32px rgba(11, 45, 92, 0.14);
    transform: translateY(-50%);
  }

  body.qics-nav-open .qics-menu-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    transform: none;
  }

  body.qics-home .qics-menu-toggle.is-open span:nth-child(1),
  body.qics-system-page .qics-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.qics-home .qics-menu-toggle.is-open span:nth-child(2),
  body.qics-system-page .qics-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  body.qics-home .qics-menu-toggle.is-open span:nth-child(3),
  body.qics-system-page .qics-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.qics-home .qics-menu-panel,
  body.qics-system-page .qics-menu-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1004;
    display: flex !important;
    width: min(88vw, 360px);
    max-height: none;
    height: 100dvh;
    padding: 86px 18px 22px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: -22px 0 54px rgba(6, 20, 45, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateX(105%);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  body.qics-home .qics-menu-panel::before,
  body.qics-system-page .qics-menu-panel::before {
    content: "Menu";
    position: absolute;
    top: 27px;
    left: 20px;
    color: var(--qics-navy);
    font-size: 18px;
    font-weight: 900;
  }

  body.qics-home .qics-menu-panel.is-open,
  body.qics-system-page .qics-menu-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  body.qics-home .qics-nav-list,
  body.qics-system-page .qics-nav-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.qics-home .qics-nav-list a,
  body.qics-system-page .qics-nav-list a {
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 15px;
    border: 1px solid rgba(11, 45, 92, 0.09);
    border-radius: 8px;
    background: rgba(248, 246, 242, 0.72);
    color: var(--qics-navy);
    font-size: 14px;
    font-weight: 800;
  }

  body.qics-home .qics-nav-list a.is-active,
  body.qics-home .qics-nav-list a:hover,
  body.qics-system-page .qics-nav-list a.is-active,
  body.qics-system-page .qics-nav-list a:hover {
    border-color: rgba(11, 45, 92, 0.16);
    background: var(--qics-navy);
    color: #fff;
  }

  body.qics-home .qics-header-actions,
  body.qics-system-page .qics-header-actions {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(11, 45, 92, 0.1);
  }

  body.qics-home .qics-cart-link,
  body.qics-system-page .qics-cart-link {
    width: 54px;
    height: 54px;
  }

  body.qics-home .qics-header-cta,
  body.qics-system-page .qics-header-cta,
  body.qics-home .qics-header-logout,
  body.qics-system-page .qics-header-logout {
    min-height: 54px;
    width: 100%;
    border-radius: 8px;
  }

  body.qics-home .qics-user-menu,
  body.qics-system-page .qics-user-menu {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  body.qics-home .qics-menu-toggle,
  body.qics-system-page .qics-menu-toggle {
    top: 50%;
    right: 10px;
  }

  body.qics-nav-open .qics-menu-toggle {
    top: 10px;
    right: 10px;
    transform: none;
  }

  body.qics-home .qics-menu-panel,
  body.qics-system-page .qics-menu-panel {
    left: auto;
    right: 0;
    width: min(90vw, 340px);
    padding: 78px 14px 18px;
  }

  body.qics-home .qics-menu-panel::before,
  body.qics-system-page .qics-menu-panel::before {
    top: 22px;
    left: 16px;
  }

  body.qics-home .qics-nav-list,
  body.qics-system-page .qics-nav-list,
  body.qics-home .qics-header-actions,
  body.qics-system-page .qics-header-actions {
    grid-template-columns: 1fr;
  }

  body.qics-home .qics-header-actions,
  body.qics-system-page .qics-header-actions {
    grid-template-columns: 52px minmax(0, 1fr);
  }
}

@media (max-width: 1199px) {
  body.qics-home .qics-menu-panel,
  body.qics-system-page .qics-menu-panel {
    inset: 0 auto 0 0;
    width: min(86vw, 360px);
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
    box-shadow: 24px 0 70px rgba(6, 20, 45, 0.28);
    transform: translateX(-105%);
  }

  body.qics-home .qics-menu-panel::before,
  body.qics-system-page .qics-menu-panel::before {
    display: none;
  }

  body.qics-nav-open .qics-menu-toggle {
    opacity: 0;
    pointer-events: none;
  }

  body.qics-home .qics-menu-panel-head,
  body.qics-system-page .qics-menu-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(11, 45, 92, 0.1);
    background: #fff;
    box-shadow: 0 12px 26px rgba(11, 45, 92, 0.06);
  }

  body.qics-home .qics-menu-brand,
  body.qics-system-page .qics-menu-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
  }

  body.qics-home .qics-menu-brand img,
  body.qics-system-page .qics-menu-brand img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: contain;
  }

  body.qics-home .qics-menu-brand span,
  body.qics-system-page .qics-menu-brand span {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  body.qics-home .qics-menu-brand strong,
  body.qics-system-page .qics-menu-brand strong {
    overflow: hidden;
    color: var(--qics-navy);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.qics-home .qics-menu-brand small,
  body.qics-system-page .qics-menu-brand small {
    color: var(--qics-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
  }

  body.qics-home .qics-menu-close,
  body.qics-system-page .qics-menu-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(11, 45, 92, 0.12);
    border-radius: 8px;
    background: rgba(248, 246, 242, 0.92);
    color: var(--qics-navy);
  }

  body.qics-home .qics-menu-close svg,
  body.qics-system-page .qics-menu-close svg {
    width: 21px;
    height: 21px;
    stroke-width: 2.4;
  }

  body.qics-home .qics-menu-label,
  body.qics-system-page .qics-menu-label {
    display: block;
    margin: 18px 18px 10px;
    color: var(--qics-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  body.qics-home .qics-menu-panel .qics-nav,
  body.qics-system-page .qics-menu-panel .qics-nav {
    padding: 0 14px;
  }

  body.qics-home .qics-nav-list,
  body.qics-system-page .qics-nav-list {
    gap: 7px;
  }

  body.qics-home .qics-nav-list a,
  body.qics-system-page .qics-nav-list a {
    min-height: 46px;
    padding: 0 14px;
    border-color: rgba(11, 45, 92, 0.08);
    background: #fff;
    box-shadow: 0 8px 20px rgba(11, 45, 92, 0.045);
  }

  body.qics-home .qics-header-actions,
  body.qics-system-page .qics-header-actions {
    margin: 18px 14px 16px;
    padding: 14px;
    border: 1px solid rgba(11, 45, 92, 0.09);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(11, 45, 92, 0.07);
  }

  body.qics-home .qics-cart-link,
  body.qics-system-page .qics-cart-link {
    border-color: rgba(11, 45, 92, 0.12);
    background: rgba(248, 246, 242, 0.92);
  }

  body.qics-home .qics-header-cta,
  body.qics-system-page .qics-header-cta {
    justify-content: center;
    box-shadow: 0 14px 30px rgba(11, 45, 92, 0.16);
  }

  body.qics-home .qics-user-dropdown,
  body.qics-system-page .qics-user-dropdown {
    position: static;
    width: 100%;
    margin-top: 10px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 767px) {
  body.qics-home .qics-menu-panel,
  body.qics-system-page .qics-menu-panel {
    right: auto;
    left: 0;
    width: min(88vw, 336px);
    padding: 0;
  }

  body.qics-home .qics-menu-panel-head,
  body.qics-system-page .qics-menu-panel-head {
    padding: 14px;
  }

  body.qics-home .qics-menu-brand img,
  body.qics-system-page .qics-menu-brand img {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
}

body.qics-home .qics-card,
body.qics-system-page .qics-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.qics-home .qics-card-pad,
body.qics-system-page .qics-card-pad {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.qics-home .qics-card h3,
body.qics-system-page .qics-card h3 {
  display: -webkit-box;
  min-height: 2.4em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.qics-home .qics-card p:not(.qics-price-line),
body.qics-system-page .qics-card p:not(.qics-price-line) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.qics-home .qics-card .qics-meta,
body.qics-system-page .qics-card .qics-meta {
  min-height: 24px;
}

body.qics-home .qics-card .qics-ui-btn,
body.qics-system-page .qics-card .qics-ui-btn,
body.qics-home .qics-card .qics-card-actions,
body.qics-system-page .qics-card .qics-card-actions {
  margin-top: auto;
}

body.qics-home .qics-card .qics-ui-btn,
body.qics-system-page .qics-card .qics-ui-btn {
  align-self: flex-start;
}

body.qics-home .qics-price-line,
body.qics-system-page .qics-price-line {
  min-height: 58px;
  align-items: flex-start;
}

body.qics-home .qics-card-media,
body.qics-system-page .qics-card-media {
  min-height: 0;
  height: clamp(160px, 14vw, 220px);
  aspect-ratio: 16 / 9;
}

body.qics-home .qics-card-media img,
body.qics-system-page .qics-card-media img,
body.qics-home img.qics-course-image,
body.qics-system-page img.qics-course-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.qics-home .qics-card > .qics-product-image,
body.qics-system-page .qics-card > .qics-product-image,
body.qics-home .qics-card > .qics-book-cover,
body.qics-system-page .qics-card > .qics-book-cover {
  width: 100%;
  min-height: 0;
  height: clamp(230px, 20vw, 320px);
  aspect-ratio: 4 / 5;
  box-sizing: border-box;
  border-radius: var(--qics-radius) var(--qics-radius) 0 0;
}

body.qics-home .qics-card > .qics-product-image,
body.qics-system-page .qics-card > .qics-product-image {
  display: block;
  width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: #f4f7f6;
}

body.qics-home .qics-card > .qics-book-cover,
body.qics-system-page .qics-card > .qics-book-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.qics-system-page .qics-book-grid .qics-card > .qics-product-image,
body.qics-system-page .qics-book-grid .qics-card > .qics-book-cover {
  height: clamp(280px, 23vw, 360px);
  aspect-ratio: 4 / 5;
  padding: 8px;
}

body.qics-system-page .qics-book-grid .qics-card-pad {
  padding: 18px;
}

body.qics-system-page .qics-book-grid .qics-card h3 {
  min-height: 0;
  font-size: 19px;
}

body.qics-system-page .qics-book-grid .qics-card p:not(.qics-price-line) {
  margin-bottom: 0;
}

body.qics-system-page .qics-book-grid .qics-price-line {
  min-height: 36px;
  margin-bottom: 12px;
  font-size: 12px;
}

body.qics-system-page .qics-book-grid .qics-card-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

body.qics-system-page .qics-book-grid .qics-card-actions form {
  width: 100%;
  display: flex;
}

body.qics-system-page .qics-book-grid .qics-card-actions > :only-child {
  grid-column: 1 / -1;
}

body.qics-system-page .qics-book-grid .qics-ui-btn {
  width: 100%;
  min-height: 38px;
  align-self: stretch;
  padding-inline: 14px;
  font-size: 12px;
}

body.qics-home .qics-product-main-image,
body.qics-system-page .qics-product-main-image,
body.qics-home .qics-book-cover.large,
body.qics-system-page .qics-book-cover.large {
  width: 100%;
  min-height: clamp(360px, 48vw, 520px);
  height: 100%;
  aspect-ratio: 4 / 5;
  box-sizing: border-box;
}

body.qics-home .qics-product-main-image,
body.qics-system-page .qics-product-main-image {
  display: block;
  width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  background: #f4f7f6;
}

body.qics-home .qics-product-layout,
body.qics-system-page .qics-product-layout {
  grid-template-columns: minmax(320px, 560px) minmax(360px, 420px);
  align-items: stretch;
  justify-content: center;
  gap: 56px;
}

body.qics-home .qics-product-gallery,
body.qics-system-page .qics-product-gallery {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
}

body.qics-home .qics-product-gallery > .qics-product-main-image,
body.qics-system-page .qics-product-gallery > .qics-product-main-image,
body.qics-home .qics-product-gallery > .qics-book-cover.large,
body.qics-system-page .qics-product-gallery > .qics-book-cover.large {
  flex: 1 1 auto;
}

body.qics-home .qics-product-layout .qics-buy-panel,
body.qics-system-page .qics-product-layout .qics-buy-panel {
  min-height: clamp(360px, 48vw, 520px);
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.qics-home .qics-buy-panel h2,
body.qics-system-page .qics-buy-panel h2 {
  margin: 8px 0 10px;
  color: var(--qics-navy);
  font-family: var(--qics-heading);
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

body.qics-home .qics-buy-panel .qics-form,
body.qics-system-page .qics-buy-panel .qics-form {
  display: grid;
  gap: 12px;
}

.qics-simple-breadcrumb + .qics-suite-section {
  padding-top: 48px;
}

@media (max-width: 991px) {
  body.qics-home .qics-product-layout,
  body.qics-system-page .qics-product-layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  body.qics-home .qics-product-gallery,
  body.qics-system-page .qics-product-gallery {
    max-width: none;
  }

  body.qics-home .qics-product-layout .qics-buy-panel,
  body.qics-system-page .qics-product-layout .qics-buy-panel {
    min-height: 0;
    height: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  body.qics-home .qics-card-media,
  body.qics-system-page .qics-card-media {
    height: 180px;
  }

  body.qics-home .qics-card > .qics-product-image,
  body.qics-system-page .qics-card > .qics-product-image,
  body.qics-home .qics-card > .qics-book-cover,
  body.qics-system-page .qics-card > .qics-book-cover {
    height: 260px;
  }

  body.qics-system-page .qics-book-grid .qics-card > .qics-product-image,
  body.qics-system-page .qics-book-grid .qics-card > .qics-book-cover {
    height: 290px;
  }

  body.qics-home .qics-product-main-image,
  body.qics-system-page .qics-product-main-image,
  body.qics-home .qics-book-cover.large,
  body.qics-system-page .qics-book-cover.large {
    min-height: 360px;
    height: 360px;
  }

  body.qics-home .qics-product-layout,
  body.qics-system-page .qics-product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.qics-home .qics-product-gallery,
  body.qics-system-page .qics-product-gallery {
    max-width: none;
  }
}

body.qics-system-page .qics-portal-stat-grid {
  gap: 18px;
}

body.qics-system-page .qics-portal-stat-card {
  position: relative;
  height: auto;
  border-color: rgba(11, 45, 92, 0.1);
  box-shadow: 0 12px 28px rgba(11, 45, 92, 0.06);
}

body.qics-system-page .qics-portal-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--qics-gold);
}

body.qics-system-page .qics-portal-stat-card:hover {
  border-color: rgba(11, 45, 92, 0.16);
  box-shadow: 0 16px 34px rgba(11, 45, 92, 0.09);
  transform: translateY(-2px);
}

body.qics-system-page .qics-portal-stat-card .qics-card-pad {
  flex: none;
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px 22px 22px 28px;
}

body.qics-system-page .qics-portal-stat-kicker {
  display: block;
  margin-bottom: 9px;
  color: rgba(93, 105, 123, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

body.qics-system-page .qics-portal-stat-card strong {
  display: block;
  margin: 0;
  color: var(--qics-navy);
  font-size: 34px;
  line-height: 1;
}

body.qics-system-page .qics-portal-stat-card h3 {
  display: block;
  min-height: 0;
  margin: 9px 0 0;
  color: var(--qics-muted);
  font-family: var(--qics-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow: visible;
  -webkit-line-clamp: initial;
}

body.qics-system-page .qics-portal-stat-icon {
  width: auto;
  min-width: 54px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(200, 160, 90, 0.14);
  color: var(--qics-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  body.qics-system-page .qics-portal-stat-card .qics-card-pad {
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 20px 20px 20px 24px;
  }

  body.qics-system-page .qics-portal-stat-card strong {
    font-size: 30px;
  }
}

body.qics-system-page .qics-lesson-section + .qics-lesson-section {
  margin-top: 26px;
}

body.qics-system-page .qics-lesson-section h3,
body.qics-system-page .qics-recorded-lessons h3 {
  margin: 0 0 14px;
}

body.qics-system-page .qics-lesson-list,
body.qics-system-page .qics-mini-lesson-list {
  display: grid;
  gap: 10px;
}

body.qics-system-page .qics-lesson-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 45, 92, 0.09);
  border-radius: 8px;
  background: #fff;
  color: var(--qics-navy);
}

body.qics-system-page .qics-lesson-row:hover {
  border-color: rgba(200, 160, 90, 0.5);
  box-shadow: 0 12px 26px rgba(11, 45, 92, 0.06);
}

body.qics-system-page .qics-lesson-number {
  min-width: 42px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(200, 160, 90, 0.14);
  color: var(--qics-gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

body.qics-system-page .qics-lesson-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.qics-system-page .qics-lesson-copy strong {
  color: var(--qics-navy);
  font-size: 15px;
  line-height: 1.3;
}

body.qics-system-page .qics-lesson-copy small {
  color: var(--qics-muted);
  font-size: 12px;
  line-height: 1.3;
}

body.qics-system-page .qics-lesson-player {
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #07172d;
}

body.qics-system-page .qics-lesson-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

body.qics-system-page .qics-mini-lesson-list a {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 45, 92, 0.08);
  color: var(--qics-navy);
}

body.qics-system-page .qics-mini-lesson-list a.is-active span {
  color: var(--qics-gold);
}

body.qics-system-page .qics-mini-lesson-list small {
  color: var(--qics-muted);
}

@media (max-width: 767px) {
  body.qics-system-page .qics-lesson-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.qics-system-page .qics-lesson-row .qics-status-pill {
    grid-column: 2;
    justify-self: start;
  }
}
