:root {
  --app-bg: #f8fafc;
  --app-surface: #ffffff;
  --app-surface-soft: #f1f5f9;
  --app-text: #1f2937;
  --app-muted: #6b7280;
  --app-border: #dbe3ef;
  --app-link: #0d6efd;
  --app-navbar-bg: #ffffff;
  --app-navbar-text: #1f2937;
  --app-footer-bg: #ffffff;
  --app-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.08);
  --editor-line-height: 1.8;
}

html[data-theme='dark'] {
  --app-bg: #0f172a;
  --app-surface: #111827;
  --app-surface-soft: #1f2937;
  --app-text: #e5e7eb;
  --app-muted: #9ca3af;
  --app-border: #374151;
  --app-link: #93c5fd;
  --app-navbar-bg: #111827;
  --app-navbar-text: #f9fafb;
  --app-footer-bg: #111827;
  --app-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
}

html {
  font-size: 18px;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

body {
  background-color: var(--app-bg);
  color: var(--app-text);
  transition: background-color 0.25s ease, color 0.25s ease;
  margin: 0;
  padding: 0;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.65), 0 0 0 0.25rem rgba(37, 140, 251, 0.35);
}

/* Flexbox layout cho admin area và các trang dùng .app-page wrapper */
.app-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1 0 auto;
  width: 100%;
}

.app-footer {
  flex-shrink: 0;
  width: 100%;
}

/* Product card hover + clickable styles */
.product-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

a.text-decoration-none .product-card .card-title,
.product-card-title {
  color: var(--app-text) !important;
}

a.text-decoration-none .product-card:hover .card-title,
.product-card:hover .product-card-title {
  color: var(--app-link) !important;
}

.admin-body-menu {
  border: 1px solid var(--app-border);
  background-color: var(--app-surface);
}

.admin-body-menu .btn {
  white-space: nowrap;
}

.navbar,
.card,
.modal-content,
.dropdown-menu,
.list-group-item,
.table,
.alert,
.accordion-item,
.offcanvas,
.pagination .page-link,
.form-control,
.form-select,
.input-group-text {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar {
  background-color: var(--app-navbar-bg) !important;
  box-shadow: var(--app-shadow);
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .dropdown-item,
.navbar .navbar-text,
footer,
footer a,
a {
  color: var(--app-link);
}

.navbar.navbar-light .navbar-brand,
.navbar.navbar-light .nav-link,
.navbar.navbar-light .navbar-text,
.navbar.navbar-light .navbar-toggler,
.navbar.navbar-dark .navbar-brand,
.navbar.navbar-dark .nav-link,
.navbar.navbar-dark .navbar-text,
.navbar.navbar-dark .navbar-toggler {
  color: var(--app-navbar-text) !important;
}

.navbar .dropdown-menu,
.card,
.modal-content,
.list-group-item,
.table,
.input-group-text,
.form-control,
.form-select,
textarea,
footer {
  background-color: var(--app-surface);
  color: var(--app-text);
  border-color: var(--app-border);
}

.card,
.table,
.list-group-item,
.dropdown-menu,
footer,
.alert,
.accordion-item {
  box-shadow: var(--app-shadow);
}

.text-muted,
.form-text,
small,
.table,
.table > :not(caption) > * > * {
  color: var(--app-muted) !important;
}

.table {
  --bs-table-bg: var(--app-surface);
  --bs-table-striped-bg: var(--app-surface-soft);
  --bs-table-striped-color: var(--app-text);
  --bs-table-hover-bg: rgba(148, 163, 184, 0.12);
  --bs-table-hover-color: var(--app-text);
  --bs-table-color: var(--app-text);
  border-color: var(--app-border);
}

.list-group-item,
.dropdown-item,
.pagination .page-link {
  background-color: var(--app-surface);
  color: var(--app-text);
  border-color: var(--app-border);
}

.dropdown-item:hover,
.dropdown-item:focus,
.list-group-item-action:hover,
.list-group-item-action:focus,
.pagination .page-link:hover {
  background-color: var(--app-surface-soft);
  color: var(--app-text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

html[data-theme='dark'] .theme-toggle.btn-outline-secondary {
  color: var(--app-text);
  border-color: var(--app-border);
}

html[data-theme='dark'] .theme-toggle.btn-outline-light {
  color: var(--app-text);
  border-color: var(--app-border);
  background-color: transparent;
}

html[data-theme='dark'] .alert-success {
  background-color: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.35);
  color: #dcfce7;
}

html[data-theme='dark'] .alert-danger {
  background-color: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fee2e2;
}

html[data-theme='dark'] .alert-info {
  background-color: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
  color: #dbeafe;
}

html[data-theme='dark'] .bg-light,
html[data-theme='dark'] .bg-white {
  background-color: var(--app-surface-soft) !important;
  color: var(--app-text) !important;
}

html[data-theme='dark'] .border,
html[data-theme='dark'] .border-top,
html[data-theme='dark'] .border-bottom,
html[data-theme='dark'] hr {
  border-color: var(--app-border) !important;
}

html[data-theme='dark'] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dark mode placeholder text - make it more visible */
html[data-theme='dark'] .form-control::placeholder,
html[data-theme='dark'] .form-select::placeholder,
html[data-theme='dark'] textarea::placeholder,
html[data-theme='dark'] input::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

html[data-theme='dark'] .form-control:focus::placeholder,
html[data-theme='dark'] .form-select:focus::placeholder,
html[data-theme='dark'] textarea:focus::placeholder,
html[data-theme='dark'] input:focus::placeholder {
  color: #b0b7c3 !important;
  opacity: 1 !important;
}

/* Ensure form controls have good contrast in dark mode */
html[data-theme='dark'] .form-control,
html[data-theme='dark'] .form-select,
html[data-theme='dark'] textarea,
html[data-theme='dark'] input[type="text"],
html[data-theme='dark'] input[type="email"],
html[data-theme='dark'] input[type="password"],
html[data-theme='dark'] input[type="number"],
html[data-theme='dark'] input[type="tel"],
html[data-theme='dark'] input[type="url"],
html[data-theme='dark'] input[type="search"],
html[data-theme='dark'] input[type="date"],
html[data-theme='dark'] input[type="time"] {
  background-color: var(--app-surface);
  color: var(--app-text);
  border-color: var(--app-border);
}

html[data-theme='dark'] .form-control:focus,
html[data-theme='dark'] .form-select:focus,
html[data-theme='dark'] textarea:focus,
html[data-theme='dark'] input:focus {
  background-color: var(--app-surface);
  color: var(--app-text);
  border-color: #60a5fa;
}

html[data-theme='dark'] .form-control:disabled,
html[data-theme='dark'] .form-select:disabled,
html[data-theme='dark'] textarea:disabled,
html[data-theme='dark'] input:disabled {
  background-color: var(--app-surface-soft);
  color: var(--app-muted);
  opacity: 0.6;
}

/* Input group styling in dark mode */
html[data-theme='dark'] .input-group-text {
  background-color: var(--app-surface-soft);
  color: var(--app-text);
  border-color: var(--app-border);
}

html[data-theme='dark'] .input-group > .form-control:focus,
html[data-theme='dark'] .input-group > .form-select:focus {
  z-index: 3;
}

/* Offcanvas styling in dark mode */
html[data-theme='dark'] .offcanvas {
  background-color: var(--app-surface);
  color: var(--app-text);
}

html[data-theme='dark'] .offcanvas-header {
  border-bottom-color: var(--app-border);
}

html[data-theme='dark'] .offcanvas-footer {
  border-top-color: var(--app-border);
}

/* Modal styling in dark mode */
html[data-theme='dark'] .modal-content {
  background-color: var(--app-surface);
  color: var(--app-text);
  border-color: var(--app-border);
}

html[data-theme='dark'] .modal-header,
html[data-theme='dark'] .modal-footer {
  border-color: var(--app-border);
}

/* Form labels in dark mode */
html[data-theme='dark'] .form-label,
html[data-theme='dark'] label {
  color: var(--app-text);
}

html[data-theme='dark'] .form-check-label {
  color: var(--app-text);
}

/* Form validation in dark mode */
html[data-theme='dark'] .invalid-feedback,
html[data-theme='dark'] .text-danger {
  color: #fca5a5 !important;
}

html[data-theme='dark'] .valid-feedback,
html[data-theme='dark'] .text-success {
  color: #86efac !important;
}

html[data-theme='dark'] .form-control.is-invalid,
html[data-theme='dark'] .form-select.is-invalid {
  border-color: #f87171;
}

html[data-theme='dark'] .form-control.is-valid,
html[data-theme='dark'] .form-select.is-valid {
  border-color: #4ade80;
}

.ck.ck-editor__main > .ck-editor__editable {
  min-height: 320px;
  line-height: var(--editor-line-height);
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 16pt;
}

.ck-content {
  line-height: var(--editor-line-height);
}

/* Preserve inserted image aspect ratio for rendered rich content (Blog/Product details) */
.blog-content img,
.content.ck-content img,
.ck-content img {
  max-width: 100%;
  height: auto !important;
}

.blog-content figure,
.content.ck-content figure,
.ck-content figure {
  max-width: 100%;
}

.ck.ck-toolbar,
.ck.ck-editor__main > .ck-editor__editable {
  border-color: var(--app-border) !important;
}

.card-title,
.card-title a,
h1, h2, h3, h4, h5, h6 {
  color: var(--app-text);
}

.ck.ck-editor__main > .ck-editor__editable:not([style*="color"]),
.ck-content:not([style*="color"]),
.ck-content p:not([style*="color"]),
.ck-content li:not([style*="color"]),
.ck-content span:not([style*="color"]),
.ck-content div:not([style*="color"]),
.ck-content blockquote:not([style*="color"]),
.ck-content td:not([style*="color"]),
.ck-content th:not([style*="color"]),
.ck-content figcaption:not([style*="color"]) {
  color: var(--app-text);
}

.ck-content a:not([style*="color"]),
.content.ck-content a:not([style*="color"]),
.blog-content a:not([style*="color"]) {
  color: var(--app-link) !important;
}

html[data-theme='dark'] .ck.ck-toolbar,
html[data-theme='dark'] .ck.ck-editor__main > .ck-editor__editable,
html[data-theme='dark'] .ck.ck-list,
html[data-theme='dark'] .ck.ck-dropdown__panel,
html[data-theme='dark'] .ck.ck-button:not(.ck-disabled):hover,
html[data-theme='dark'] .ck.ck-button.ck-on {
  background-color: var(--app-surface) !important;
  color: var(--app-text) !important;
}

html[data-theme='dark'] .ck.ck-toolbar,
html[data-theme='dark'] .ck.ck-editor__main > .ck-editor__editable {
  border-color: var(--app-border) !important;
}

.content.ck-content:not([style*="color"]),
.blog-content:not([style*="color"]),
.ck-content:not([style*="color"]) {
  color: var(--app-text) !important;
}

html[data-theme='dark'] .content.ck-content *:not([style*="color"]),
html[data-theme='dark'] .blog-content *:not([style*="color"]),
html[data-theme='dark'] .ck-content *:not([style*="color"]) {
  color: var(--app-text) !important;
}

html[data-theme='dark'] .content.ck-content a:not([style*="color"]),
html[data-theme='dark'] .blog-content a:not([style*="color"]),
html[data-theme='dark'] .ck-content a:not([style*="color"]) {
  color: var(--app-link) !important;
}

.content.ck-content hr,
.blog-content hr,
.ck-content hr,
.content.ck-content table,
.blog-content table,
.ck-content table,
.content.ck-content td,
.blog-content td,
.ck-content td,
.content.ck-content th,
.blog-content th,
.ck-content th {
  border-color: var(--app-border) !important;
}

.content.ck-content blockquote,
.blog-content blockquote,
.ck-content blockquote {
  border-left: 4px solid var(--app-border);
  background-color: var(--app-surface-soft);
  color: var(--app-text);
  padding: 0.75rem 1rem;
}

.content.ck-content code,
.blog-content code,
.ck-content code,
.content.ck-content pre,
.blog-content pre,
.ck-content pre {
  background-color: var(--app-surface-soft);
  color: var(--app-text);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===================================
   Home Banner Carousel Responsive
   =================================== */

/* Base carousel styling */
.home-banner-carousel {
  position: relative;
  overflow: hidden;
}

.home-banner-carousel .carousel-inner {
  border-radius: 0.5rem;
}

/* Banner image responsive heights */
.home-banner-carousel .banner-img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Mobile: 188px height (75% of 250px) */
@media (max-width: 575.98px) {
  .home-banner-carousel .banner-img {
    height: 188px;
  }

  .home-banner-carousel .banner-caption {
    display: none !important;
  }
}

/* Tablet: 263px height (75% of 350px) */
@media (min-width: 576px) and (max-width: 991.98px) {
  .home-banner-carousel .banner-img {
    height: 263px;
  }

  .home-banner-carousel .banner-title {
    font-size: 1.25rem;
  }

  .home-banner-carousel .banner-description {
    font-size: 0.875rem;
  }
}

/* Desktop: 375px height (75% of 500px) */
@media (min-width: 992px) {
  .home-banner-carousel .banner-img {
    height: 375px;
  }

  .home-banner-carousel .banner-title {
    font-size: 2rem;
  }

  .home-banner-carousel .banner-description {
    font-size: 1.125rem;
  }
}

/* Large Desktop: 450px height (75% of 600px) */
@media (min-width: 1400px) {
  .home-banner-carousel .banner-img {
    height: 450px;
  }
}

/* Banner caption styling */
.home-banner-carousel .banner-caption {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  padding: 1.5rem;
  bottom: 2rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  max-width: 90%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .home-banner-carousel .banner-caption {
    max-width: 70%;
  }
}

/* Banner link hover effect */
.home-banner-carousel .banner-link:hover .banner-img {
  transform: scale(1.05);
}

/* Carousel controls enhancement */
.home-banner-carousel .carousel-control-prev,
.home-banner-carousel .carousel-control-next {
  width: 5%;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.home-banner-carousel .carousel-control-prev:hover,
.home-banner-carousel .carousel-control-next:hover {
  opacity: 1;
}

.home-banner-carousel .carousel-control-prev-icon,
.home-banner-carousel .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-size: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Carousel indicators */
.home-banner-carousel .carousel-indicators {
  margin-bottom: 1rem;
}

.home-banner-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 0.25rem;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.home-banner-carousel .carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.2);
}

/* Loading state */
.home-banner-carousel .banner-img[loading="lazy"] {
  background: linear-gradient(90deg, 
    var(--app-surface-soft) 0%, 
    var(--app-surface) 50%, 
    var(--app-surface-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Dark mode adjustments */
html[data-theme='dark'] .home-banner-carousel .banner-caption {
  background-color: rgba(0, 0, 0, 0.75);
}

/* ===================================
   LearnHub-inspired homepage theme
   =================================== */
.learnhub-homepage {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 193, 7, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 38%, #ffffff 100%);
  color: #0f172a;
}

.learnhub-homepage .container {
  position: relative;
  z-index: 1;
}

.learnhub-hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.learnhub-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.7;
}

.learnhub-circle-one {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -80px;
  background: rgba(13, 110, 253, 0.12);
}

.learnhub-circle-two {
  width: 220px;
  height: 220px;
  top: 10%;
  right: -70px;
  background: rgba(255, 193, 7, 0.14);
}

.learnhub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.15);
  color: #0d6efd;
  font-weight: 600;
}

.learnhub-badge-dark {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.learnhub-title {
  max-width: 12ch;
  line-height: 1.15;
}

.learnhub-subtitle,
.learnhub-section-text {
  color: #64748b;
  max-width: 62ch;
}

.learnhub-stats {
  margin-top: 2rem;
}

.learnhub-stat-card,
.learnhub-info-card,
.learnhub-mini-feature,
.learnhub-testimonial-card,
.learnhub-community-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.learnhub-stat-card {
  height: 100%;
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.learnhub-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
}

.learnhub-stat-label {
  color: #64748b;
  font-size: 0.95rem;
}

.learnhub-hero-media {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.learnhub-hero-image {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.learnhub-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #0f172a;
}

.learnhub-floating-top {
  top: 1.5rem;
  right: -1rem;
}

.learnhub-floating-bottom {
  bottom: 1.5rem;
  left: -1rem;
}

.learnhub-feature-strip {
  margin-top: -1rem;
}

.learnhub-info-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.learnhub-info-card h3,
.learnhub-mini-feature h3,
.learnhub-testimonial-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.learnhub-info-card p,
.learnhub-mini-feature p,
.learnhub-testimonial-card p,
.learnhub-community-card p {
  margin-bottom: 0;
  color: #64748b;
}

.learnhub-info-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.learnhub-section-label {
  display: inline-block;
  color: #0d6efd;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.learnhub-banner-carousel .carousel-indicators {
  margin-bottom: 1.25rem;
}

.learnhub-banner-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.75);
}

.learnhub-banner-slide {
  position: relative;
  height: clamp(320px, 42vw, 520px);
  border-radius: 2rem;
  overflow: hidden;
}

.learnhub-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learnhub-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.58) 100%);
}

.learnhub-banner-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  color: #ffffff;
}

.learnhub-banner-content h3 {
  font-size: clamp(1.8rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.learnhub-banner-description-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.22);
  border: 1px solid rgba(253, 224, 71, 0.4);
  color: #fef3c7;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  backdrop-filter: blur(8px);
  max-width: min(100%, 640px);
}

.learnhub-banner-action {
  margin-top: 0.25rem;
}

.learnhub-category-block {
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.learnhub-product-link {
  display: block;
}

.learnhub-product-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.learnhub-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12) !important;
}

.learnhub-product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
}

.learnhub-product-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.learnhub-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  font-size: 0.8rem;
  font-weight: 600;
}

.learnhub-rating {
  color: #64748b;
  font-size: 0.85rem;
}

.learnhub-product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.learnhub-product-description {
  color: #64748b;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.learnhub-price {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
}

html[data-theme='dark'] .learnhub-price {
  color: #f8fafc;
}

.learnhub-enroll-link {
  color: #0d6efd;
  font-weight: 600;
}

.learnhub-community-card {
  border-radius: 2rem;
  padding: 2rem;
  height: 100%;
}

.learnhub-mini-feature {
  border-radius: 1.25rem;
  padding: 1.25rem;
  height: 100%;
}

.learnhub-testimonial-card {
  border-radius: 1.75rem;
  padding: 1.75rem;
  height: 100%;
  transition: all 0.3s ease;
}

/* Hover effect for clickable testimonial cards */
a:hover .learnhub-testimonial-card {
  transform: translateY(-4px);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.12);
}

html[data-theme='dark'] a:hover .learnhub-testimonial-card {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.learnhub-avatar-placeholder {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d6efd, #3b82f6);
  color: #ffffff;
  font-weight: 700;
}

.learnhub-secondary-btn {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #0f172a;
}

.learnhub-secondary-btn:hover,
.learnhub-outline-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

html[data-theme='dark'] .learnhub-homepage {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 20%),
    linear-gradient(180deg, #020617 0%, #0f172a 38%, #020617 100%);
  color: #e2e8f0;
}

html[data-theme='dark'] .learnhub-badge,
html[data-theme='dark'] .learnhub-stat-card,
html[data-theme='dark'] .learnhub-info-card,
html[data-theme='dark'] .learnhub-category-block,
html[data-theme='dark'] .learnhub-community-card,
html[data-theme='dark'] .learnhub-mini-feature,
html[data-theme='dark'] .learnhub-testimonial-card,
html[data-theme='dark'] .learnhub-floating-card,
html[data-theme='dark'] .learnhub-hero-media {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

html[data-theme='dark'] .learnhub-homepage h1,
html[data-theme='dark'] .learnhub-homepage h2,
html[data-theme='dark'] .learnhub-homepage h3,
html[data-theme='dark'] .learnhub-homepage h4,
html[data-theme='dark'] .learnhub-homepage .learnhub-stat-number,
html[data-theme='dark'] .learnhub-homepage .learnhub-product-title,
html[data-theme='dark'] .learnhub-homepage .learnhub-price {
  color: #f8fafc;
}

html[data-theme='dark'] .learnhub-subtitle,
html[data-theme='dark'] .learnhub-section-text,
html[data-theme='dark'] .learnhub-stat-label,
html[data-theme='dark'] .learnhub-info-card p,
html[data-theme='dark'] .learnhub-mini-feature p,
html[data-theme='dark'] .learnhub-testimonial-card p,
html[data-theme='dark'] .learnhub-community-card p,
html[data-theme='dark'] .learnhub-rating,
html[data-theme='dark'] .learnhub-product-description,
html[data-theme='dark'] .learnhub-testimonial-card small,
html[data-theme='dark'] .learnhub-floating-card small {
  color: #cbd5e1;
}

html[data-theme='dark'] .learnhub-secondary-btn {
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.2);
}

@media (max-width: 991.98px) {
  .learnhub-title {
    max-width: none;
  }

  .learnhub-banner-slide {
    height: clamp(300px, 44vw, 420px);
  }

  .learnhub-banner-content {
    padding: 1.75rem;
  }

  .learnhub-banner-description-badge {
    font-size: 0.9rem;
  }

  .learnhub-floating-top,
  .learnhub-floating-bottom {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .learnhub-hero-image {
    min-height: 280px;
  }

  .learnhub-banner-slide {
    height: clamp(240px, 56vw, 320px);
  }

  .learnhub-banner-content {
    width: 100%;
    max-width: none;
    padding: 1.25rem;
    gap: 0.75rem;
    justify-content: center;
  }

  .learnhub-banner-content h3 {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .learnhub-banner-description-badge {
    padding: 0.6rem 0.95rem;
    font-size: 0.85rem;
    max-width: 92%;
  }

  .learnhub-category-block,
  .learnhub-community-card,
  .learnhub-testimonial-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }
}

.home-page-shell .learnhub-shell-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(14px);
}

.home-page-shell .learnhub-shell-navbar {
  margin: 1rem auto 0;
  width: min(1280px, calc(100% - 1.5rem));
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.home-page-shell .learnhub-shell-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.home-page-shell .learnhub-shell-collapse {
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.75rem;
}

.home-page-shell .learnhub-shell-menu,
.home-page-shell .learnhub-shell-actions,
.home-page-shell .learnhub-shell-actions .navbar-nav,
.home-page-shell .learnhub-auth-nav {
  flex-wrap: nowrap;
}

.home-page-shell .learnhub-shell-menu {
  min-width: 0;
}

.home-page-shell .learnhub-shell-actions {
  flex-shrink: 0;
  margin-left: auto;
}

.home-page-shell .learnhub-auth-nav {
  align-items: center;
}

.home-page-shell .learnhub-auth-form {
  margin-bottom: 0;
}

.home-page-shell .learnhub-shell-brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: #0f172a !important;
  white-space: nowrap;
}

.home-page-shell .learnhub-shell-brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-page-shell .learnhub-shell-nav-link,
.home-page-shell .learnhub-auth-link {
  color: #334155 !important;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.55rem 0.6rem !important;
  white-space: nowrap;
  word-break: keep-all;
}

.home-page-shell .learnhub-shell-actions .nav-link,
.home-page-shell .learnhub-shell-actions .btn,
.home-page-shell .learnhub-shell-actions .theme-toggle-text,
.home-page-shell .learnhub-shell-actions form,
.home-page-shell .learnhub-shell-actions button,
.home-page-shell .learnhub-auth-link {
  white-space: nowrap;
}

.home-page-shell .learnhub-user-toggle::after {
  margin-left: 0.45rem;
}

.home-page-shell .learnhub-user-menu {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.home-page-shell .learnhub-user-menu .dropdown-item {
  border-radius: 0.75rem;
  padding: 0.55rem 0.85rem;
}

.home-page-shell .learnhub-shell-nav-link:hover,
.home-page-shell .learnhub-shell-cart-link:hover {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd !important;
}

.home-page-shell .learnhub-shell-admin-link {
  background: rgba(220, 38, 38, 0.08);
}

.home-page-shell .learnhub-shell-theme-toggle {
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
}

.home-page-shell .learnhub-shell-theme-toggle.theme-toggle-darkmode {
  background: #0f172a;
  border-color: #0f172a;
  color: #f8fafc;
}

.home-page-shell .learnhub-shell-theme-toggle.theme-toggle-lightmode {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.28);
  color: #0f172a;
}

.home-page-shell .learnhub-shell-theme-toggle:hover,
.home-page-shell .learnhub-shell-theme-toggle:focus,
.home-page-shell .learnhub-shell-theme-toggle:active {
  box-shadow: none;
  transform: translateY(-1px);
}

.home-page-shell .learnhub-shell-theme-toggle.theme-toggle-darkmode:hover,
.home-page-shell .learnhub-shell-theme-toggle.theme-toggle-darkmode:focus,
.home-page-shell .learnhub-shell-theme-toggle.theme-toggle-darkmode:active {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #f8fafc !important;
}

.home-page-shell .learnhub-shell-theme-toggle.theme-toggle-lightmode:hover,
.home-page-shell .learnhub-shell-theme-toggle.theme-toggle-lightmode:focus,
.home-page-shell .learnhub-shell-theme-toggle.theme-toggle-lightmode:active {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.42) !important;
  color: #0f172a !important;
}

.home-page-shell .learnhub-shell-footer {
  border-top: none !important;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.4) 0%, #ffffff 100%);
}

.home-page-shell .learnhub-shell-footer-container {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 3rem !important;
}

.home-page-shell .learnhub-shell-footer-title {
  font-weight: 700;
}

.home-page-shell .learnhub-shell-footer-meta,
.home-page-shell .learnhub-shell-footer-copy,
.home-page-shell .learnhub-shell-footer-links a {
  color: #64748b;
}

.home-page-shell .learnhub-shell-footer-links li + li {
  margin-top: 0.5rem;
}

.learnhub-product-page,
.learnhub-product-detail-page {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.learnhub-product-hero,
.learnhub-product-detail-hero {
  padding: 2rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.learnhub-product-summary-card {
  min-width: 220px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #0d6efd, #60a5fa);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(13, 110, 253, 0.25);
}

.learnhub-product-summary-card strong {
  font-size: 1.75rem;
}

.learnhub-filter-card,
.learnhub-search-panel,
.learnhub-detail-card,
.learnhub-detail-sidebar-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.75rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.learnhub-filter-card-header {
  padding: 1.25rem 1.25rem 0.75rem;
}

.learnhub-filter-list .list-group-item {
  border: 0;
  border-radius: 1rem !important;
  margin: 0.35rem 0.75rem;
  width: auto;
}

.learnhub-filter-list .list-group-item.active {
  background: linear-gradient(135deg, #0d6efd, #3b82f6);
  border-color: transparent;
}

.learnhub-search-panel {
  padding: 1rem;
}

.learnhub-search-input {
  border-radius: 1rem 0 0 1rem !important;
}

.learnhub-search-panel .btn {
  border-radius: 0 1rem 1rem 0 !important;
}

.learnhub-pagination .page-link {
  border-radius: 0.85rem !important;
  margin: 0 0.2rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.learnhub-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #0d6efd, #3b82f6);
  border-color: transparent;
}

.learnhub-product-page .product-card {
  border: 0;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.learnhub-product-page .product-card .card-img-top {
  height: 240px;
  object-fit: cover;
}

.learnhub-product-page .product-card .card-body {
  padding: 1.4rem;
}

.learnhub-product-page .product-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.learnhub-product-page .product-card .card-text {
  min-height: 2.8rem;
}

.learnhub-detail-card .card-header h5,
.learnhub-detail-card .card-header h4 {
  color: #0f172a;
}

.learnhub-detail-main-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.learnhub-detail-main-video iframe {
  border: 0;
  border-radius: 1.25rem;
}

.learnhub-detail-empty-media {
  min-height: 360px;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #ffffff;
}

.product-media-thumb {
  border-radius: 1rem !important;
  overflow: hidden;
  background: #ffffff;
}

.product-media-thumb.active {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14);
}

.learnhub-rich-content {
  color: #334155;
}

.learnhub-review-item {
  padding: 1rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.learnhub-review-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.learnhub-detail-meta-row,
.learnhub-detail-meta-list small {
  color: #64748b;
}

.learnhub-detail-price-block .price-container {
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  background: rgba(13, 110, 253, 0.06);
}

.learnhub-detail-list-group .list-group-item {
  border-left: 0;
  border-right: 0;
  padding: 1rem 1.25rem;
}

.learnhub-detail-list-group .list-group-item:first-child {
  border-top: 0;
}

.learnhub-detail-list-group .list-group-item:last-child {
  border-bottom: 0;
}

html[data-theme='dark'] .home-page-shell .learnhub-shell-navbar {
  background: rgba(15, 23, 42, 0.86) !important;
  border-color: rgba(148, 163, 184, 0.14) !important;
}

html[data-theme='dark'] .home-page-shell .learnhub-shell-brand,
html[data-theme='dark'] .home-page-shell .learnhub-shell-nav-link,
html[data-theme='dark'] .home-page-shell .learnhub-auth-link,
html[data-theme='dark'] .home-page-shell .learnhub-shell-footer-title {
  color: #f8fafc !important;
}

html[data-theme='dark'] .home-page-shell .learnhub-user-menu {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme='dark'] .home-page-shell .learnhub-user-menu .dropdown-item,
html[data-theme='dark'] .home-page-shell .learnhub-user-menu .dropdown-divider {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme='dark'] .home-page-shell .learnhub-shell-nav-link:hover,
html[data-theme='dark'] .home-page-shell .learnhub-shell-cart-link:hover {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd !important;
}

html[data-theme='dark'] .home-page-shell .learnhub-shell-theme-toggle.theme-toggle-darkmode {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
  color: #f8fafc;
}

html[data-theme='dark'] .home-page-shell .learnhub-shell-theme-toggle.theme-toggle-lightmode {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f172a;
}

html[data-theme='dark'] .home-page-shell .learnhub-shell-theme-toggle.theme-toggle-lightmode:hover,
html[data-theme='dark'] .home-page-shell .learnhub-shell-theme-toggle.theme-toggle-lightmode:focus,
html[data-theme='dark'] .home-page-shell .learnhub-shell-theme-toggle.theme-toggle-lightmode:active {
  background: #f8fafc !important;
  border-color: #f8fafc !important;
  color: #0f172a !important;
}

html[data-theme='dark'] .home-page-shell .learnhub-shell-footer {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, #020617 100%);
}

html[data-theme='dark'] .home-page-shell .learnhub-shell-footer-meta,
html[data-theme='dark'] .home-page-shell .learnhub-shell-footer-copy,
html[data-theme='dark'] .home-page-shell .learnhub-shell-footer-links a {
  color: #cbd5e1;
}

html[data-theme='dark'] .learnhub-product-page,
html[data-theme='dark'] .learnhub-product-detail-page {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 22%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

html[data-theme='dark'] .learnhub-product-hero,
html[data-theme='dark'] .learnhub-product-detail-hero,
html[data-theme='dark'] .learnhub-filter-card,
html[data-theme='dark'] .learnhub-search-panel,
html[data-theme='dark'] .learnhub-detail-card,
html[data-theme='dark'] .learnhub-detail-sidebar-card,
html[data-theme='dark'] .learnhub-detail-price-block .price-container {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme='dark'] .learnhub-product-page h1,
html[data-theme='dark'] .learnhub-product-detail-page h1,
html[data-theme='dark'] .learnhub-product-detail-page h2,
html[data-theme='dark'] .learnhub-product-detail-page h3,
html[data-theme='dark'] .learnhub-product-detail-page h4,
html[data-theme='dark'] .learnhub-product-detail-page h5,
html[data-theme='dark'] .learnhub-product-page .product-card .card-title,
html[data-theme='dark'] .learnhub-detail-card .card-header h5,
html[data-theme='dark'] .learnhub-detail-card .card-header h4 {
  color: #f8fafc;
}

html[data-theme='dark'] .learnhub-product-page .product-card,
html[data-theme='dark'] .learnhub-product-page .product-card .card-body,
html[data-theme='dark'] .learnhub-product-page .product-card .card-img-top,
html[data-theme='dark'] .product-media-thumb,
html[data-theme='dark'] .learnhub-detail-list-group .list-group-item {
  background-color: rgba(15, 23, 42, 0.82);
}

html[data-theme='dark'] .learnhub-product-page .product-card .card-text,
html[data-theme='dark'] .learnhub-rich-content,
html[data-theme='dark'] .learnhub-review-item p,
html[data-theme='dark'] .learnhub-detail-meta-row,
html[data-theme='dark'] .learnhub-detail-meta-list small,
html[data-theme='dark'] .learnhub-detail-list-group .list-group-item,
html[data-theme='dark'] .learnhub-product-page .text-muted,
html[data-theme='dark'] .learnhub-product-detail-page .text-muted {
  color: #cbd5e1 !important;
}

@media (max-width: 991.98px) {
  .home-page-shell .learnhub-shell-navbar {
    width: calc(100% - 1rem);
    border-radius: 1.5rem;
  }

  .home-page-shell .learnhub-shell-container {
    align-items: flex-start;
  }

  .home-page-shell .learnhub-shell-collapse {
    width: 100%;
  }

  .home-page-shell .learnhub-shell-menu,
  .home-page-shell .learnhub-shell-actions,
  .home-page-shell .learnhub-shell-actions .navbar-nav,
  .home-page-shell .learnhub-auth-nav {
    flex-wrap: wrap;
  }

  .learnhub-product-hero,
  .learnhub-product-detail-hero {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .learnhub-product-summary-card {
    width: 100%;
  }

  .learnhub-search-input,
  .learnhub-search-panel .btn {
    border-radius: 1rem !important;
  }
}

.auth-page-wrap {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.auth-login-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
}

.auth-login-links a {
  color: #0d6efd;
  text-decoration: none;
}

.auth-login-links a:hover {
  text-decoration: underline;
}

html[data-theme='dark'] .auth-page-wrap {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 24%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

html[data-theme='dark'] .auth-login-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme='dark'] .auth-login-links a {
  color: #93c5fd;
}
