*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --primary-color: #ffb000;
  --primary-dark: #e58f00;
  --secondary-color: #16a34a;
  --dark-color: #201234;
  --light-color: #f5f5f5;

  /* ✅ MAIN YELLOW BACKGROUND */
  --yellowish-bg: #fffdf2;
  --yellow-soft: #fff9db;

  --glass-bg: rgba(255, 255, 255, 0.9);

  --card-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  --hover-shadow: 0 20px 42px rgba(17, 24, 39, 0.14);

  --transition-base: all 0.3s ease;
}

/* ================= BODY ================= */
body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ✅ APPLY YELLOWISH BACKGROUND */
  background: #f6f7fb;

  color: var(--dark-color);
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ================= GLOBAL SPACING ================= */
section {
  margin: 0;
  padding: 60px 0;
}

.bg-yellowish {
  background: linear-gradient(135deg, var(--yellowish-bg), var(--yellow-soft));
}

section + section {
  padding-top: 40px;
}

/* ================= HERO ================= */
.hero-section {
  margin-bottom: 20px;
}

.hero-section .carousel-content {
  padding: clamp(40px, 6vw, 80px) 0;
}

/* ================= STATS BAR ================= */
.stats-bar-wrapper {
  margin-top: -40px;
}

/* ================= CONTAINER ================= */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* ================= BUTTONS ================= */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border: none;
  color: var(--dark-color);
}

.btn-outline-primary {
  border-color: var(--primary-dark);
  color: var(--dark-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--dark-color);
}

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

/* ================= CARDS ================= */
.card {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

/* ================= DASHBOARD ================= */
.dash-card {
  border-radius: 15px;
  padding: 20px;

  /* ✅ Slight yellow tint */
  background: linear-gradient(135deg, #ffffff, var(--yellow-soft));

  box-shadow: var(--card-shadow);
}

.dash-card:hover {
  transform: scale(1.02);
}

/* ================= ICON BOX ================= */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
}

/* ================= STORE LANDING ================= */
.store-hero {
  background: linear-gradient(180deg, #fff7df 0%, #f6f7fb 100%);
}

.hero-category-panel,
.hero-deal-card,
.service-card-modern,
.course-mini-card {
  background: #ffffff;
  border: 1px solid rgba(32, 18, 52, 0.08);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.hero-category-panel {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.hero-category-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--dark-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
}

.hero-category-panel a:hover {
  background: #fff4cc;
  color: #0f7a37;
}

.hero-carousel-shell {
  min-height: 430px;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.hero-slide {
  min-height: 430px;
  height: 100%;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide-content {
  max-width: 560px;
  padding: clamp(28px, 6vw, 58px);
  color: #ffffff;
}

.hero-kicker,
.deal-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--dark-color);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-slide h1 {
  margin: 14px 0;
  max-width: 620px;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.02;
  font-weight: 800;
}

.hero-slide p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.hero-deal-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(255, 176, 0, 0.14), rgba(22, 163, 74, 0.08)),
    #ffffff;
}

.hero-deal-card h3 {
  margin: 16px 0 10px;
  font-weight: 800;
}

.hero-deal-card p {
  color: #6c757d;
}

.deal-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 24px;
}

.deal-list span,
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.deal-list i,
.feature-list i {
  color: var(--secondary-color);
  margin-top: 4px;
}

.category-carousel-section {
  background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
  padding: 40px 0;
}

.category-carousel-shell {
  position: relative;
  padding: 24px 48px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

.category-carousel-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at 12% 18%,
      rgba(255, 186, 0, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 22%,
      rgba(103, 198, 215, 0.18),
      transparent 22%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), transparent 60%);
}

.category-carousel-shell > .carousel-inner,
.category-carousel-track {
  position: relative;
  z-index: 1;
}

.category-carousel-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  text-align: center;
  text-decoration: none;
  color: var(--dark-color);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.category-tile:hover {
  transform: translateY(-8px);
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.category-tile img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  border-radius: 18px;
  object-fit: cover;
  filter: saturate(1.05);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.04);
  filter: saturate(1.12);
}

.category-call-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #ffffff;
  border: none;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.18);
}

.category-call-tile i {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 6px;
}

.category-tile span {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

.category-call-tile span {
  margin-top: 8px;
  color: #ffffff;
}

.category-carousel-control {
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  transform: translateY(-50%);
  opacity: 1;
  color: #1f2937;
}

.category-carousel-control:hover {
  background: rgba(255, 255, 255, 1);
}

@media (max-width: 1100px) {
  .category-carousel-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .category-carousel-shell {
    padding: 20px 24px;
  }

  .category-carousel-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .category-carousel-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-carousel-control {
    display: none;
  }
}

@media (max-width: 480px) {
  .category-carousel-track {
    grid-template-columns: 1fr;
  }

  .category-carousel-section {
    padding: 24px 0;
  }
}

.learning-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.learning-stats-grid div {
  padding: 20px;
  border: 1px solid rgba(32, 18, 52, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 244, 204, 0.76)
    ),
    #ffffff;
  box-shadow: var(--card-shadow);
}

.learning-stats-grid strong {
  display: block;
  color: var(--dark-color);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1;
  font-weight: 900;
}

.learning-stats-grid span {
  display: block;
  margin-top: 8px;
  color: #6c757d;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-title {
  font-weight: 800;
  color: var(--dark-color);
}

.modern-product-card {
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.09);
}

.product-action {
  color: #0f7a37;
  font-size: 0.88rem;
  font-weight: 800;
}

.service-card-modern {
  height: 100%;
  padding: 24px;
  transition: var(--transition-base);
}

.service-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.service-card-modern h4 {
  margin: 18px 0 10px;
  font-size: 1.08rem;
  font-weight: 800;
}

.service-card-modern p {
  margin: 0;
  color: #6c757d;
  font-size: 0.92rem;
}

.featured-service {
  border-color: rgba(255, 176, 0, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #fff9e8 100%);
}

.featured-commerce-service {
  border-color: rgba(22, 163, 74, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f0fff6 100%);
}

.secondary-service {
  border-style: dashed;
  border-color: rgba(32, 18, 52, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.service-actions a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--dark-color);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.course-mini-card {
  height: 100%;
  overflow: hidden;
}

.course-mini-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-mini-card div {
  padding: 20px;
}

.course-mini-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff4cc;
  color: #745100;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.course-mini-card h5 {
  font-weight: 800;
}

.course-mini-card p,
.feature-list {
  color: #6c757d;
}

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

.store-cta {
  background:
    linear-gradient(135deg, rgba(32, 18, 52, 0.94), rgba(15, 122, 55, 0.88)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80")
      center/cover;
}

/* ================= FORMS ================= */
.form-control,
.form-select {
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #ddd;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* ================= PROGRESS ================= */
.progress {
  height: 8px;
  border-radius: 10px;
  background: #eee;
}

/* ================= NAVBAR ================= */
.navbar {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.navbar-search-form {
  order: 2;
  flex: 1 1 580px;
  max-width: 680px;
  min-width: 0;
  margin: 0 auto;
}

.navbar-search-form .input-group {
  width: 100%;
}

.navbar-search-form .form-control {
  border-radius: 999px;
  border: 1px solid rgba(32, 18, 52, 0.12);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.navbar-search-form .form-control:focus {
  border-color: rgba(22, 163, 74, 0.8);
  box-shadow: 0 0 0 0.15rem rgba(22, 163, 74, 0.12);
}

.navbar-search-form .btn-search {
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  min-width: 54px;
}

.navbar-search-form .btn-search i {
  font-size: 1rem;
}

.no-results-banner {
  border-radius: 18px;
  background: #fff4e5;
  border: 1px solid #ffe3b8;
  color: #663c00;
}

.no-results-banner h4 {
  margin-bottom: 0.25rem;
}

.no-results-banner p {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .navbar-search-form {
    order: 3;
    width: 100%;
    margin-top: 0.75rem;
    max-width: none;
  }

  .navbar-toggler {
    border: none;
    background: transparent;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: 260px;
  background: #ffffff;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar .nav-link {
  padding: 10px 20px;
  border-radius: 10px;
  margin: 5px;
  color: var(--dark-color);
}

.sidebar .nav-link:hover {
  background: var(--yellow-soft);
}

/* ================= CONTENT ================= */
.content-wrapper {
  margin-left: 260px;
  padding: 20px;
}

/* ================= TABLE ================= */
.table {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* ================= NOTES PAGE SPECIAL ================= */
.notes-card {
  background: linear-gradient(135deg, #ffffff, var(--yellow-soft));
  border-radius: 15px;
  padding: 20px;
}

/* ================= ALERTS ================= */
.alert {
  border-radius: 10px;
}

/* ================= FOOTER ================= */
footer {
  background: yellow;
  padding: 30px 0;
}

/* ================= SCROLLBAR ================= */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f0f0f0;
}

/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-slide-content {
    max-width: 500px;
  }

  .hero-slide h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }
}

@media (max-width: 991px) {
  .content-wrapper {
    margin-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .stats-bar-wrapper {
    margin-top: 20px;
  }

  .navbar .container-fluid {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .navbar-brand {
    order: 1;
    margin-right: auto;
  }

  .navbar-search-form {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin: 0.5rem 0;
  }

  .navbar-toggler {
    order: 2;
  }

  .hero-category-panel {
    display: none;
  }

  .hero-deal-card {
    padding: 20px;
  }

  .hero-deal-card h3 {
    font-size: 1.25rem;
  }

  .deal-list {
    gap: 8px;
  }

  .service-card-modern {
    padding: 20px;
  }

  .course-mini-card {
    padding: 16px;
  }

  .product-tile {
    margin-bottom: 1rem;
  }

  .site-footer .col-lg-3,
  .site-footer .col-lg-2 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }

  .hero-section .carousel-content {
    padding: 40px 0;
  }

  body {
    font-size: 0.95rem;
  }

  .hero-slide-content {
    max-width: 100%;
    padding: clamp(20px, 4vw, 40px);
  }

  .hero-slide h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.1;
  }

  .hero-slide p {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-deal-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .deal-list {
    justify-content: center;
  }

  .service-card-modern {
    text-align: center;
  }

  .service-card-modern .icon-box {
    margin: 0 auto 1rem;
  }

  .course-mini-card {
    text-align: center;
  }

  .course-mini-card .icon-box {
    margin: 0 auto 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  .dash-card {
    padding: 16px;
  }

  .learning-hero,
  .requests-hero,
  .product-admin-hero,
  .products-hero {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .learning-actions,
  .product-admin-actions {
    flex-direction: column;
  }

  .request-stats {
    grid-template-columns: 1fr;
  }

  .course-route {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .course-route::before,
  .course-route::after {
    display: none;
  }

  .product-tile {
    border-radius: 16px;
  }

  .product-image-wrap {
    min-height: 200px;
  }

  .site-footer {
    text-align: center;
  }

  .site-footer .row > div {
    margin-bottom: 2rem;
  }

  .floating-whatsapp,
  .sticky-mobile-apply {
    display: block;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  section {
    padding: 30px 0;
  }

  .hero-section .carousel-content {
    padding: 30px 0;
  }

  body {
    font-size: 0.9rem;
  }

  .hero-slide h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .hero-slide p {
    font-size: 0.95rem;
  }

  .hero-kicker {
    font-size: 0.8rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .card {
    border-radius: 12px;
  }

  .dash-card {
    padding: 14px;
    border-radius: 12px;
  }

  .icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .learning-card,
  .review-card,
  .product-admin-card {
    padding: 16px;
  }

  .recent-product-item {
    padding: 10px;
  }

  .recent-product-item img {
    width: 48px;
    height: 48px;
  }

  .product-tile {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  .product-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  }

  .product-image-wrap {
    min-height: 180px;
  }

  .product-tile-body {
    padding: 16px;
  }

  .price-row strong {
    font-size: 1.1rem;
  }

  .product-card-actions {
    flex-direction: column;
    gap: 8px;
  }

  .product-card-actions .btn {
    width: 100%;
  }

  .site-footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .site-footer h5,
  .site-footer h6 {
    font-size: 1.1rem;
  }

  .site-footer .social-links a {
    font-size: 1.2rem;
    margin: 0 0.5rem;
  }

  .floating-whatsapp {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .sticky-mobile-apply {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  #backToTop {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    display: none !important;
  }

  .navbar-brand img {
    height: 50px;
  }

  .navbar-search-form .form-control {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .navbar-search-form .btn-search {
    padding: 0.75rem 1rem;
  }

  .hero-slide-content {
    padding: 20px;
  }

  .hero-slide h1 {
    font-size: 1.8rem;
  }

  .hero-slide p {
    font-size: 0.9rem;
  }

  .hero-deal-card {
    padding: 16px;
  }

  .service-card-modern,
  .course-mini-card {
    padding: 16px;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  .icon-box {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .learning-hero,
  .requests-hero,
  .product-admin-hero,
  .products-hero {
    padding: 16px;
  }

  .deadline-panel,
  .request-strip {
    padding: 10px;
    gap: 8px;
  }

  .request-stat {
    padding: 14px;
  }

  .request-stat strong {
    font-size: 1.5rem;
  }

  .review-avatar {
    width: 36px;
    height: 36px;
  }

  .course-route {
    padding: 12px;
  }

  .recent-product-list {
    gap: 8px;
  }

  .recent-product-item {
    padding: 8px;
    gap: 8px;
  }

  .recent-product-item img {
    width: 40px;
    height: 40px;
  }

  .product-tile {
    margin-bottom: 0.5rem;
  }

  .product-image-wrap {
    min-height: 160px;
  }

  .product-tile-body {
    padding: 12px;
  }

  .product-category {
    font-size: 0.8rem;
  }

  .product-tile h5 {
    font-size: 1rem;
  }

  .price-row {
    font-size: 0.9rem;
  }

  .site-footer .row {
    --bs-gutter-x: 1rem;
  }

  .site-footer .col-lg-3,
  .site-footer .col-lg-2,
  .site-footer .col-md-6 {
    margin-bottom: 1.5rem;
  }

  .site-footer h5,
  .site-footer h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .site-footer p,
  .site-footer li {
    font-size: 0.85rem;
  }

  .site-footer .social-links a {
    font-size: 1.1rem;
    margin: 0 0.25rem;
  }

  .floating-whatsapp {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .sticky-mobile-apply {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  #backToTop {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .product-card-link {
    min-height: 44px;
  }

  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }

  .dropdown-item {
    padding: 12px 16px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-outline-primary {
    border-width: 2px;
  }

  .card {
    border: 1px solid;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================= COURSE CHANGE WORKFLOW ================= */
.learning-hero,
.requests-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(80, 70, 0, 0.08);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.learning-card,
.review-card {
  background: #ffffff;
  border: 1px solid rgba(80, 70, 0, 0.08);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.learning-actions {
  display: flex;
  gap: 10px;
}

.learning-actions > .btn,
.learning-actions > form {
  flex: 1 1 0;
}

.deadline-panel,
.request-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #fff9db;
  color: #4f4200;
}

.deadline-panel i,
.request-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #8a7300;
  flex: 0 0 auto;
}

.empty-learning {
  background: #ffffff;
  border: 1px dashed rgba(80, 70, 0, 0.2);
  border-radius: 12px;
}

.request-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.request-stat {
  background: #ffffff;
  border: 1px solid rgba(80, 70, 0, 0.08);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--card-shadow);
}

.request-stat span {
  display: block;
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.request-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.review-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff9db;
  color: purple;
}

.course-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: #f8f9fa;
}

.course-route small {
  display: block;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
}

.course-route strong {
  display: block;
  color: var(--dark-color);
}

/* ================= PRODUCT ADMIN + STORE ================= */
.product-admin-hero,
.products-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(80, 70, 0, 0.08);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.product-admin-card,
.empty-products {
  background: #ffffff;
  border: 1px solid rgba(80, 70, 0, 0.08);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.product-admin-card {
  padding: 22px;
}

.recent-product-list {
  display: grid;
  gap: 12px;
}

.recent-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8f9fa;
}

.recent-product-item img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
}

.product-tile {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease;
}

.product-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 75px rgba(15, 23, 42, 0.16);
}

.product-image-wrap {
  position: relative;
  min-height: 260px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.product-tile:hover .product-image-wrap img {
  transform: scale(1.08);
  filter: brightness(1.02);
}

.product-card-link {
  display: block;
  color: inherit;
}

.stock-pill,
.discount-badge,
.deal-float-badge {
  z-index: 2;
}

.stock-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.stock-pill.in-stock {
  color: #0f766e;
}

.stock-pill.out-stock {
  color: #b91c1c;
}

.discount-badge {
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  background: #ff6b6b;
  color: #ffffff;
  font-size: 0.78rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.deal-float-badge {
  bottom: 14px;
  left: 14px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-tile-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 22px;
}

.product-detail-card {
  background: #ffffff;
  border: 1px solid rgba(80, 70, 0, 0.08);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.1);
}

.product-detail-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.9),
    rgba(248, 249, 250, 1)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 24px 70px rgba(15, 23, 42, 0.12);
  transition: transform 0.35s ease;
}

.product-detail-image-wrap:hover {
  transform: translateY(-4px);
}

.product-detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  background: #f8f9fa;
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.product-detail-image-wrap:hover .product-detail-image {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.product-detail-overview,
.product-detail-specs {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.product-detail-overview {
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.product-detail-specs {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.product-detail-specs h5,
.product-detail-overview h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.product-detail-specs h5 {
  color: #1e293b;
}

.info-box {
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
}

.info-box span {
  display: block;
  font-size: 0.82rem;
  color: #6b7280;
}

.info-box strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}

.product-detail-features {
  padding-left: 0;
  margin-bottom: 0;
}

.product-detail-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4b5563;
}

.product-detail-features li i {
  margin-top: 3px;
  min-width: 18px;
}

/* ================= MODERN STORE PAGE ================= */
.storefront-page {
  background: #f6f7fb;
}

.products-showcase {
  padding: 34px 0 22px;
  background:
    linear-gradient(135deg, rgba(43, 18, 76, 0.95), rgba(119, 64, 0, 0.82)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80")
      center/cover;
}

.products-hero-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.products-hero-copy,
.flash-widget {
  min-height: 360px;
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.products-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
  color: #ffffff;
  background: linear-gradient(
    90deg,
    rgba(32, 18, 52, 0.96),
    rgba(32, 18, 52, 0.56)
  );
}

.products-hero-copy h1 {
  max-width: 820px;
  margin: 16px 0;
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  font-weight: 900;
}

.products-hero-copy p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.flash-widget {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  background: #ffffff;
}

.flash-widget-top,
.flash-sale-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.flash-widget-top span,
.flash-sale-ribbon i {
  color: #dc3545;
}

.flash-widget-top strong {
  padding: 7px 10px;
  border-radius: 8px;
  background: #2b124c;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.flash-widget h3 {
  margin: 22px 0 10px;
  font-size: 2.2rem;
  font-weight: 900;
}

.flash-widget p {
  color: #6c757d;
}

.flash-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.flash-mini-grid span {
  padding: 10px;
  border-radius: 8px;
  background: #fff4cc;
  color: var(--dark-color);
  font-size: 0.8rem;
  font-weight: 800;
}

.product-category-strip {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.product-category-strip a {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: #f4f6fa;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.product-category-strip a.active,
.product-category-strip a:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: #111827;
  transform: translateY(-1px);
}

.flash-sale-ribbon {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #111827, #4f46e5);
  color: #ffffff;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.2);
}

.flash-sale-ribbon div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flash-sale-ribbon span {
  color: rgba(255, 255, 255, 0.78);
}

.flash-sale-ribbon a {
  color: #111827;
  background: #fbbf24;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.animated-product-card {
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: productCardIn 0.68s ease forwards;
}

@keyframes productCardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animated-product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 18%,
    rgba(255, 255, 255, 0.35),
    transparent 78%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.animated-product-card:hover::after {
  transform: translateX(120%);
}

.product-card-link {
  color: inherit;
}

.discount-badge,
.deal-float-badge {
  position: absolute;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.discount-badge {
  top: 12px;
  padding: 7px 10px;
  background: #dc3545;
  color: #ffffff;
}

.deal-float-badge {
  bottom: 12px;
  padding: 6px 10px;
  background: #ffffff;
  color: var(--dark-color);
}

.product-category {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff4cc;
  color: #745100;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-tile-body h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.product-tile-body p {
  color: #4b5563;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-row strong {
  color: #111827;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.price-row span {
  color: #9ca3af;
  font-size: 0.9rem;
  text-decoration: line-through;
}

.product-progress {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-top: 12px;
}

.product-progress div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.product-card-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.product-card-actions a,
.product-card-actions button {
  min-height: 44px;
}

.product-card-actions .btn {
  width: 100%;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.product-card-actions .btn-outline-primary {
  border-color: rgba(59, 130, 246, 0.35);
  color: #2563eb;
}

.product-card-actions .btn-outline-primary:hover {
  background: rgba(59, 130, 246, 0.08);
}

.product-card-actions .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-color: transparent;
  color: #111827;
}

@media (max-width: 575px) {
  .product-card-actions {
    grid-template-columns: 1fr;
  }
}

.flash-modal {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.flash-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background-color: #ffffff;
  opacity: 1;
}

.flash-modal-image {
  height: 230px;
  overflow: hidden;
}

.flash-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.flash-modal-body h3 {
  margin: 14px 0 10px;
  font-weight: 900;
}

.flash-modal-body p {
  color: #6c757d;
}

/* ================= FLASH MODAL MOBILE ================= */
@media (max-width: 576px) {
  .flash-modal-image {
    height: 180px;
  }

  .flash-modal-body {
    padding: 20px;
  }

  .flash-modal-body h3 {
    font-size: 1.25rem;
  }

  .flash-modal-body .d-flex.gap-2 {
    flex-direction: column;
  }

  .flash-modal-body .d-flex.gap-2 .btn {
    width: 100%;
  }
}

.stock-pill-static {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #f8f9fa;
}

.stock-pill-static.in-stock {
  color: #198754;
}

.stock-pill-static.out-stock {
  color: #dc3545;
}

@media (max-width: 768px) {
  .learning-hero,
  .requests-hero,
  .product-admin-hero,
  .products-hero,
  .learning-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .request-stats,
  .course-route {
    grid-template-columns: 1fr;
  }

  .course-route > i {
    transform: rotate(90deg);
  }
}

@media (max-width: 991px) {
  .products-hero-v2 {
    grid-template-columns: 1fr;
  }

  .products-hero-copy,
  .flash-widget {
    min-height: auto;
  }
}

@media (max-width: 575px) {
  .product-card-actions,
  .flash-sale-ribbon {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 991px) {
  .hero-carousel-shell,
  .hero-slide {
    min-height: 390px;
  }

  .category-carousel-track,
  .learning-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-carousel-shell {
    padding: 14px 54px;
  }

  .section-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (max-width: 575px) {
  .hero-carousel-shell,
  .hero-slide {
    min-height: 430px;
  }

  .category-carousel-track,
  .learning-stats-grid,
  .store-products-grid {
    grid-template-columns: 1fr;
  }

  .category-carousel-shell {
    padding: 14px 46px;
  }
}
/* ================= NAVBAR THEME ================= */

/* Yellow Header Background */
.navbar {
  background: linear-gradient(135deg, #ffd700, #ccac00);
}

/* Brand Text */
.navbar-brand span {
  color: purple;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Nav Links */
.navbar .nav-link {
  color: purple !important;
  font-weight: 500;
  transition: 0.3s ease;
}

/* Hover = Greenish */
.navbar .nav-link:hover {
  color: #28a745 !important;
}

/* Dropdown */
.dropdown-menu {
  border-radius: 10px;
  border: none;
}

.dropdown-item {
  transition: 0.3s;
}

.dropdown-item:hover {
  background: #eaffea;
  color: #28a745;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: 2px;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
  display: block;
}

/* CREATE USER naivasha WITH PASSWORD 'Impact2025' SUPERUSER INHERIT LOGIN; */

/* lecturer should not sign up because they are added by the admin. */

.dropdown-header {
  color: #6c4a00;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Sidebar fix (optional matching theme) */
.sidebar {
  background: #fffdf2;
}

/* ================= EXPANDED CONTENT ================= */
.solution-card,
.about-panel,
.news-panel {
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(32, 18, 52, 0.08);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.solution-card {
  transition: var(--transition-base);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.solution-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.solution-card h4,
.solution-card p {
  padding-left: 22px;
  padding-right: 22px;
}

.solution-card h4 {
  margin: 20px 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.solution-card p {
  padding-bottom: 22px;
  color: #6c757d;
  font-size: 0.92rem;
}

.about-panel,
.news-panel {
  padding: clamp(24px, 4vw, 36px);
}

.about-panel p,
.news-panel p {
  color: #6c757d;
}

.news-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(140deg, rgba(32, 18, 52, 0.94), rgba(92, 39, 132, 0.92)),
    url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1200&q=80")
      center/cover;
  color: #ffffff;
}

.news-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.about-info-card {
  height: 100%;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(32, 18, 52, 0.08);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-base);
}

.about-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.about-info-card i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff4cc;
  color: var(--dark-color);
  font-size: 1.2rem;
}

.about-info-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
}

.about-info-card p {
  margin-bottom: 0;
  color: #6c757d;
  font-size: 0.92rem;
}

.about-commerce-card {
  border-color: rgba(22, 163, 74, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f0fff6 100%);
}

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

.sector-grid span {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8f9fa;
  color: var(--dark-color);
  font-size: 0.9rem;
  font-weight: 600;
}

.floating-whatsapp,
.sticky-mobile-apply {
  position: fixed;
  z-index: 2050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.22);
}

.floating-whatsapp {
  right: 22px;
  bottom: 92px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-size: 1.6rem;
}

.floating-whatsapp:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.sticky-mobile-apply {
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 52px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--dark-color);
  font-weight: 800;
}

@media (min-width: 768px) {
  .sticky-mobile-apply {
    display: none;
  }
}

@media (max-width: 991px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    margin: 0 0 0 14px;
    box-shadow: none !important;
    border-left: 2px solid #ffe08a;
  }
}

/* ================= FORM MOBILE ================= */
@media (max-width: 576px) {
  .form-control,
  .form-select {
    padding: 0.75rem 1rem;
    font-size: 1rem; /* Prevent zoom on iOS */
    min-height: 44px;
  }

  .input-group-text {
    min-height: 44px;
    padding: 0.75rem;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }

  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
}
@media (max-width: 768px) {
  .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .product-tile {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .row.g-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
}
@media (max-width: 768px) {
  .hero-carousel-shell {
    min-height: 350px;
    height: auto;
  }

  .hero-slide {
    min-height: 350px;
    height: auto;
    padding: 20px 0;
  }

  .carousel-indicators {
    bottom: 10px;
  }

  .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
  }
}

@media (max-width: 576px) {
  .hero-carousel-shell {
    min-height: 300px;
  }

  .hero-slide {
    min-height: 300px;
  }
}
@media (max-width: 768px) {
  .floating-whatsapp,
  .sticky-mobile-apply {
    display: flex;
  }

  .sticky-mobile-apply {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .floating-whatsapp {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .floating-whatsapp {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    right: 18px;
    bottom: 80px;
  }

  .sticky-mobile-apply {
    padding: 10px 14px;
    font-size: 0.85rem;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .floating-whatsapp {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    right: 16px;
    bottom: 72px;
  }

  .sticky-mobile-apply {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 44px;
  }
}

/* pay for notes 

check for arrears hence do not access the course materials or notes., Pay for notes :::: mpesa intergration -payment received open the notes.*/
