/* ==========================================================================
   STEMSPACE — REUSABLE UI COMPONENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.announcement-bar {
  background: linear-gradient(90deg, #0B203B 0%, #133863 50%, #0189F7 100%);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  position: relative;
  z-index: 1060;
  transition: all 0.3s ease;
}

.announcement-bar a {
  color: #FFA842;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  margin-left: 0.5rem;
}

.announcement-bar a:hover {
  color: #FFFFFF;
}

.announcement-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
  transition: color var(--transition-fast);
}

.announcement-close:hover {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   2. STICKY NAVBAR & NAVIGATION
   -------------------------------------------------------------------------- */
.stem-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stem-border);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stem-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
  border-bottom-color: rgba(226, 232, 240, 0.9);
}

.stem-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.stem-brand-logo {
  height: 48px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.stem-brand:hover .stem-brand-logo {
  transform: scale(1.02);
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-logo-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.stem-brand-logo-footer {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}


.stem-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--stem-blue-electric) 0%, var(--stem-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
}

.stem-logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  transform: rotate(45deg);
  animation: logoShine 4s infinite;
}

@keyframes logoShine {
  0%, 75% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.stem-brand-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--stem-navy);
  line-height: 1;
}

.stem-brand-text span {
  color: var(--stem-blue-electric);
}

.stem-brand-tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stem-text-muted);
  margin-top: 2px;
}

/* Nav Items & Mega Menus */
.stem-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 0.93rem;
  font-weight: 600;
  color: #334155;
  padding: 1.1rem 0.85rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
}

.stem-nav .nav-link:hover,
.stem-nav .nav-link.active {
  color: var(--stem-blue-electric);
}

.stem-nav .dropdown-toggle::after {
  display: none !important;
}

.stem-nav .nav-link i.chevron {
  font-size: 0.72rem;
  margin-left: 0.15rem;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.stem-nav .dropdown:hover .nav-link i.chevron,
.stem-nav .dropdown.show .nav-link i.chevron {
  transform: rotate(180deg);
}

/* Dropdown Menus & STEMpedia Mega Menus */
.stem-dropdown-menu {
  border: 1px solid var(--stem-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  padding: 0.85rem;
  min-width: 280px;
  background: #FFFFFF;
  margin-top: 0.35rem;
  animation: dropdownFade 0.22s ease forwards;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stem-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--stem-navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.stem-dropdown-item:hover {
  background: var(--stem-blue-light);
  color: var(--stem-blue-primary);
  transform: translateX(3px);
}

.stem-dropdown-item .item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #EFF6FF;
  color: var(--stem-blue-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.stem-dropdown-item:hover .item-icon {
  background: var(--stem-blue-electric);
  color: #FFFFFF;
}

.stem-dropdown-item .item-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--stem-text-muted);
  font-weight: 400;
  margin-top: 1px;
}

/* STEMpedia Mega Menu System */
@media (min-width: 1200px) {
  .stem-header .navbar {
    position: static;
  }
  .stem-header .container {
    position: relative;
  }
  .stem-nav .dropdown.has-megamenu {
    position: static;
  }
  .stem-nav .dropdown.has-megamenu > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--stem-border);
    border-top: 1px solid #F1F5F9;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.16);
    padding: 1.75rem 2rem;
    background: #FFFFFF;
    margin-top: 0;
  }
  
  /* Smooth Hover Dropdowns on Desktop */
  .stem-nav .dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .stem-nav .dropdown > .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
  }
}

/* Product & Program Visual Cards in Mega Menu */
.stempedia-nav-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.75rem;
  text-decoration: none;
  color: #1E293B;
  transition: all 0.25s ease;
  height: 100%;
}
.stempedia-nav-card:hover {
  border-color: #0284C7;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
  color: #0284C7;
}
.stempedia-nav-card .nav-card-thumb {
  border-radius: 8px;
  overflow: hidden;
  background: #F8FAFC;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
}
.stempedia-nav-card .nav-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.stempedia-nav-card:hover .nav-card-thumb img {
  transform: scale(1.06);
}
.stempedia-nav-card .nav-card-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.stempedia-nav-card .nav-card-desc {
  font-size: 0.74rem;
  color: #64748B;
  line-height: 1.35;
  font-weight: 400;
}

/* Mega Column Headings & Link Lists */
.mega-col-heading {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0284C7;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.mega-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-link-list li {
  margin-bottom: 0.45rem;
}
.mega-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.mega-link-list a:hover {
  color: #0284C7;
  background: #EFF6FF;
  padding-left: 0.8rem;
}
.mega-link-list a i.arrow-icon {
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.15s ease;
}
.mega-link-list a:hover i.arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

/* Header Right Secondary Navigation */
.btn-stem-demo {
  background: linear-gradient(135deg, #FF9823 0%, #E57E0E 100%);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.52rem 1.25rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 152, 35, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-stem-demo:hover {
  background: linear-gradient(135deg, #E57E0E 0%, #CC6A00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 152, 35, 0.5);
}
.secondary-contact-link {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 50px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.secondary-contact-link:hover {
  color: var(--stem-blue-electric) !important;
  background: #F1F5F9;
}
.secondary-contact-link i {
  color: var(--stem-blue-electric);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   2.5. QUARKY ADD-ON KITS & HARDWARE SPECS
   -------------------------------------------------------------------------- */
.addon-card {
  background: #FFFFFF;
  border: 1px solid var(--stem-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.addon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12);
  border-color: #0284C7;
}
.addon-card .addon-img-wrapper {
  position: relative;
  background: #F8FAFC;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.addon-card .addon-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.addon-card:hover .addon-img-wrapper img {
  transform: scale(1.06);
}
.addon-card .addon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.addon-card .addon-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.addon-card .addon-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.5rem;
}
.addon-card .addon-desc {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.addon-card .addon-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  border-top: 1px solid #F1F5F9;
  padding-top: 0.85rem;
}
.addon-card .addon-features li {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.addon-card .addon-features li i {
  color: #0284C7;
  font-size: 0.85rem;
}

/* Quarky Specs Table & Cards */
.spec-box {
  background: #FFFFFF;
  border: 1px solid var(--stem-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  height: 100%;
}
.spec-box:hover {
  border-color: #0284C7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
}
.spec-box .spec-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0284C7;
  margin-bottom: 0.35rem;
}
.spec-box .spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.25rem;
}
.spec-box .spec-detail {
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   2.6. PROJECT SHOWCASE CARDS ("Don't Just Learn Technology. Build It.")
   -------------------------------------------------------------------------- */
.project-showcase-card {
  background: #FFFFFF;
  border: 1px solid var(--stem-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border-color: #0284C7;
}
.project-showcase-card .project-thumb-box {
  position: relative;
  background: #F8FAFC;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-showcase-card .project-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-showcase-card:hover .project-thumb-box img {
  transform: scale(1.08);
}
.project-showcase-card .difficulty-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.difficulty-badge.beginner {
  background: #10B981;
  color: #FFFFFF;
}
.difficulty-badge.intermediate {
  background: #0284C7;
  color: #FFFFFF;
}
.difficulty-badge.advanced {
  background: #8B5CF6;
  color: #FFFFFF;
}
.project-showcase-card .duration-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.project-showcase-card .project-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-showcase-card .project-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.project-showcase-card .project-meta .meta-tag {
  font-size: 0.75rem;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.project-showcase-card .project-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.45rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.project-showcase-card:hover .project-title {
  color: #0284C7;
}
.project-showcase-card .project-desc {
  font-size: 0.86rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}
.project-showcase-card .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}
.project-showcase-card .project-tags .tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: #F1F5F9;
  color: #475569;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION
   -------------------------------------------------------------------------- */
.stem-hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 45%),
              linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: var(--stem-blue-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stem-blue-electric);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-visual-wrapper {
  position: relative;
}

.hero-main-img {
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.9);
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-main-img:hover {
  transform: scale(1.015);
}

/* Hero Floating Badges */
.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.15);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 3;
  animation: floatBadge 6s ease-in-out infinite;
}

.hero-floating-card.card-top {
  top: -20px;
  right: -15px;
  animation-delay: 0s;
}

.hero-floating-card.card-bottom {
  bottom: -25px;
  left: -20px;
  animation-delay: -3s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.floating-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.floating-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--stem-navy);
  margin-bottom: 2px;
}

.floating-desc {
  font-size: 0.78rem;
  color: var(--stem-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. TRUST & VALUE STRIP
   -------------------------------------------------------------------------- */
.trust-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--stem-border);
  border-bottom: 1px solid var(--stem-border);
  padding: 2.2rem 0;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
}

.trust-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #EFF6FF;
  color: var(--stem-blue-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.trust-item:hover .trust-icon-wrapper {
  background: var(--stem-blue-electric);
  color: #FFFFFF;
  transform: rotate(6deg) scale(1.05);
}

.trust-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
  color: var(--stem-navy);
}

.trust-desc {
  font-size: 0.85rem;
  color: var(--stem-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   5. PRODUCT CARDS & SHOWCASE
   -------------------------------------------------------------------------- */
.product-card {
  background: #FFFFFF;
  border: 1px solid var(--stem-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}

.product-badge-wrap {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
}

.product-wishlist-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--stem-border);
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  color: #EF4444;
  border-color: #FCA5A5;
  background: #FEE2E2;
}

.product-img-wrapper {
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.product-img {
  max-height: 200px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stem-text-muted);
}

.product-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--stem-navy);
}

.product-title a {
  color: inherit;
}

.product-title a:hover {
  color: var(--stem-blue-electric);
}

.product-short-desc {
  font-size: 0.88rem;
  color: var(--stem-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.tech-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: #F1F5F9;
  color: #475569;
  border-radius: 6px;
  font-weight: 600;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--stem-border);
  margin-top: auto;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--stem-navy);
}

.price-original {
  font-size: 0.9rem;
  color: #94A3B8;
  text-decoration: line-through;
  margin-left: 0.4rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE ROBOT CONFIGURATIONS (Section 17)
   -------------------------------------------------------------------------- */
.config-interactive-box {
  background: linear-gradient(165deg, #090E24 0%, #111D4A 60%, #1E1B4B 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  color: #FFFFFF;
  box-shadow: 0 25px 60px -10px rgba(10, 17, 40, 0.4);
  position: relative;
  overflow: hidden;
}

.config-interactive-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.config-selector-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
  cursor: pointer;
  margin-bottom: 0.65rem;
}

.config-selector-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateX(4px);
}

.config-selector-btn.active {
  background: linear-gradient(135deg, var(--stem-blue-electric) 0%, var(--stem-purple) 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.config-btn-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.config-preview-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.config-robot-img-box {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.config-robot-img {
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  transition: all 0.35s ease;
}

/* --------------------------------------------------------------------------
   7. AI CONCEPTS INTERACTIVE SHOWCASE (Section 16)
   -------------------------------------------------------------------------- */
.ai-concept-card {
  background: #FFFFFF;
  border: 1px solid var(--stem-border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.ai-concept-card:hover,
.ai-concept-card.active {
  border-color: var(--stem-blue-bright);
  box-shadow: 0 16px 40px -10px rgba(37, 99, 235, 0.2);
  transform: translateY(-5px);
}

.ai-concept-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition-fast);
}

.ai-concept-card:hover .ai-concept-icon {
  transform: scale(1.1) rotate(5deg);
}

.ai-interactive-screen {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #F8FAFC;
  box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.4);
}

.ai-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.ai-simulation-canvas {
  background: #020617;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(59, 130, 246, 0.4);
}

.ai-detection-box {
  border: 2px solid #00F2FE;
  background: rgba(0, 242, 254, 0.08);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  position: relative;
  animation: scanPulse 2.5s infinite;
}

@keyframes scanPulse {
  0%, 100% { border-color: #00B2FC; box-shadow: 0 0 10px rgba(0, 178, 252, 0.3); }
  50% { border-color: #0189F7; box-shadow: 0 0 20px rgba(1, 137, 247, 0.5); }
}

.ai-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00B2FC, transparent);
  animation: scanDown 2s linear infinite;
}

@keyframes scanDown {
  0% { top: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* --------------------------------------------------------------------------
   8. BOOKS SHOWCASE (Section 13)
   -------------------------------------------------------------------------- */
.book-card {
  background: #FFFFFF;
  border: 1px solid var(--stem-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  border-color: rgba(1, 137, 247, 0.4);
}

.book-cover-wrapper {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover-img {
  max-height: 220px;
  border-radius: 6px;
  box-shadow: -8px 12px 25px -4px rgba(15, 23, 42, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.book-card:hover .book-cover-img {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: -12px 18px 30px -4px rgba(15, 23, 42, 0.28);
}

/* --------------------------------------------------------------------------
   9. LEARNING PATH TIMELINE (Section 14)
   -------------------------------------------------------------------------- */
.learning-path-wrapper {
  position: relative;
  padding: 2rem 0;
}

.timeline-connector {
  position: absolute;
  top: 52px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: linear-gradient(90deg, #0189F7 0%, #67B933 35%, #FF9823 70%, #EC558C 100%);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 0.5rem;
}

.step-node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--stem-blue-electric);
  box-shadow: 0 8px 25px rgba(1, 137, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--stem-blue-electric);
  transition: all var(--transition-fast);
}

.timeline-step:hover .step-node {
  background: var(--stem-blue-electric);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(1, 137, 247, 0.4);
}

.step-content-box {
  background: #FFFFFF;
  border: 1px solid var(--stem-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.timeline-step:hover .step-content-box {
  box-shadow: var(--shadow-md);
  border-color: var(--stem-blue-bright);
}

/* --------------------------------------------------------------------------
   10. PRODUCT COMPARISON MATRIX (Section 11)
   -------------------------------------------------------------------------- */
.comparison-table-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--stem-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
}

.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.4rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--stem-border);
}

.comparison-table thead th {
  background: #F8FAFC;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--stem-border);
}

.comparison-table tbody tr:hover {
  background: #F8FAFC;
}

.comparison-feature-name {
  font-weight: 600;
  color: var(--stem-navy);
}

.check-icon {
  color: var(--stem-green);
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   11. CART DRAWER & GLOBAL SEARCH MODAL
   -------------------------------------------------------------------------- */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1080;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  z-index: 1090;
  box-shadow: -15px 0 40px rgba(15, 23, 42, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--stem-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--stem-border);
  background: #F8FAFC;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #F1F5F9;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #F8FAFC;
  object-fit: contain;
  padding: 0.35rem;
  border: 1px solid var(--stem-border);
  flex-shrink: 0;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stem-border);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  background: #FFFFFF;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  color: #475569;
}

.qty-btn:hover {
  color: var(--stem-blue-electric);
}

/* Global Search Overlay */
.search-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1080;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-overlay-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.search-modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.25);
  width: 92%;
  max-width: 680px;
  overflow: hidden;
  border: 1px solid var(--stem-border);
  animation: searchDrop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchDrop {
  from { opacity: 0; transform: translateY(-20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-input-wrap {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--stem-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-input-field {
  width: 100%;
  border: none;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  outline: none;
  color: var(--stem-navy);
}

.search-results-area {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

/* Toast Notifications */
.stem-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1099;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stem-toast {
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 4px solid var(--stem-blue-bright);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.stem-footer {
  background: #0B203B;
  color: #94A3B8;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: #0189F7;
  transform: translateX(4px);
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.88rem;
}

.social-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-circle-btn:hover {
  background: var(--stem-blue-electric);
  color: #FFFFFF;
  transform: translateY(-3px);
}
