/* ==========================================================================
   LEARNING EXPERIENCE SECTION STYLES — HIGH-PERFORMANCE 3D COVERFLOW
   Miracle IT Career Academy
   ========================================================================== */

:root {
  --carousel-perspective: 1200px;
  --carousel-card-width: 580px;
  --carousel-stage-height: 480px;
  --carousel-depth: 80px;
  --carousel-side-offset: 350px;
  --carousel-rotation: 18deg;
}

.learning-experience-section {
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden; /* Guarantee zero horizontal page overflow */
}

/* --------------------------------------------------------------------------
   3D CAROUSEL WRAPPER & STAGE
   -------------------------------------------------------------------------- */

.learning-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 2rem auto 2.75rem auto;
  overflow: hidden; /* Clips extreme 3D side projection */
  padding-block: 0.5rem;
}

.learning-carousel-stage {
  position: relative;
  width: 100%;
  height: var(--carousel-stage-height);
  perspective: var(--carousel-perspective);
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   CAROUSEL CARD — HARDWARE ACCELERATED 3D
   -------------------------------------------------------------------------- */

.carousel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--carousel-card-width);
  max-width: calc(100% - 32px);
  transform-origin: center center;
  transform-style: preserve-3d;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, opacity, filter;
  cursor: pointer;
  touch-action: pan-y;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: filter 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card inner chassis — Solid Cyber-Slate with Neon Accents (Zero Bleed-Through) */
.card-inner {
  background: #0B1120;
  background: linear-gradient(175deg, #0F172A 0%, #070B16 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 25px 60px -12px rgba(0, 0, 0, 0.95),
    0 0 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    border-color 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Center active card highlights */
.carousel-card.is-center {
  cursor: default;
  filter: none;
}

.carousel-card.is-center .card-inner {
  border-color: rgba(255, 122, 0, 0.48);
  box-shadow:
    0 32px 80px -15px rgba(0, 0, 0, 0.95),
    0 0 40px -6px rgba(255, 122, 0, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

/* Facility-specific active glow themes */
.carousel-card[data-facility="lab"].is-center .card-inner {
  border-color: rgba(14, 165, 233, 0.48);
  box-shadow:
    0 30px 75px -15px rgba(0, 0, 0, 0.92),
    0 0 40px -6px rgba(14, 165, 233, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.carousel-card[data-facility="classroom"].is-center .card-inner {
  border-color: rgba(16, 185, 129, 0.48);
  box-shadow:
    0 30px 75px -15px rgba(0, 0, 0, 0.92),
    0 0 40px -6px rgba(16, 185, 129, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.carousel-card[data-facility="capstone"].is-center .card-inner {
  border-color: rgba(255, 122, 0, 0.52);
  box-shadow:
    0 30px 75px -15px rgba(0, 0, 0, 0.92),
    0 0 42px -6px rgba(255, 122, 0, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.carousel-card[data-facility="mentorship"].is-center .card-inner {
  border-color: rgba(139, 92, 246, 0.48);
  box-shadow:
    0 30px 75px -15px rgba(0, 0, 0, 0.92),
    0 0 40px -6px rgba(139, 92, 246, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

/* Side cards hover highlight */
.carousel-card:not(.is-center) {
  filter: brightness(0.72) blur(0.5px);
}

.carousel-card:not(.is-center):hover {
  filter: brightness(0.92);
}

.carousel-card:not(.is-center):hover .card-inner {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   CARD VISUAL SECTION
   -------------------------------------------------------------------------- */

.card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 270px;
  overflow: hidden;
  background: #080C16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card.is-center:hover .card-visual img {
  transform: scale(1.035);
}

.card-visual-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(9, 13, 26, 0.65) 100%);
  pointer-events: none;
}

.card-visual-pill {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  max-width: calc(100% - 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(9, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

.dot-cyan { background-color: #38BDF8; box-shadow: 0 0 8px #38BDF8; }
.dot-emerald { background-color: #34D399; box-shadow: 0 0 8px #34D399; }
.dot-amber { background-color: #FB923C; box-shadow: 0 0 8px #FB923C; }
.dot-violet { background-color: #A78BFA; box-shadow: 0 0 8px #A78BFA; }

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* --------------------------------------------------------------------------
   CARD CONTENT & BODY
   -------------------------------------------------------------------------- */

.card-body {
  padding: 1.15rem 1.45rem 1.25rem 1.45rem;
  display: flex;
  flex-direction: column;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.facility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.facility-badge svg {
  width: 13px;
  height: 13px;
}

.badge-lab {
  background: rgba(14, 165, 233, 0.14);
  color: #38BDF8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.badge-classroom {
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-capstone {
  background: rgba(255, 122, 0, 0.14);
  color: #FB923C;
  border: 1px solid rgba(255, 122, 0, 0.35);
}

.badge-mentorship {
  background: rgba(139, 92, 246, 0.14);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.card-step-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-title {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--color-text-muted, #94a3b8);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   STREAMLINED FEATURE CHIPS ROW
   -------------------------------------------------------------------------- */
.card-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #E2E8F0;
  letter-spacing: 0.01em;
  transition: all 180ms ease;
}

.carousel-card.is-center .feature-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.chip-icon {
  font-size: 0.85rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   MICRO-CARD SPECS LIST
   -------------------------------------------------------------------------- */

.card-specs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.card-specs .spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card.is-center .spec-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.spec-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.spec-icon-wrap svg {
  width: 15px;
  height: 15px;
}

.icon-cyan {
  background: rgba(14, 165, 233, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-amber {
  background: rgba(255, 122, 0, 0.15);
  color: #FB923C;
  border: 1px solid rgba(255, 122, 0, 0.3);
}

.icon-violet {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.spec-content {
  flex: 1;
  min-width: 0;
}

.spec-content strong {
  display: block;
  font-size: 0.84rem;
  color: #F8FAFC;
  font-weight: 700;
  margin-bottom: 0.1rem;
  line-height: 1.25;
}

.spec-content p {
  font-size: 0.76rem;
  color: var(--color-text-muted, #94a3b8);
  line-height: 1.35;
  margin: 0;
}

/* --------------------------------------------------------------------------
   CARD QUICK ACTION CHIP
   -------------------------------------------------------------------------- */

.card-action-row {
  margin-top: 0.75rem;
}

.card-action-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card-action-chip svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.carousel-card.is-center .card-action-chip:hover {
  background: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 122, 0, 0.45);
  color: #FF9E42;
  transform: translateX(2px);
}

.carousel-card.is-center .card-action-chip:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   CAROUSEL CONTROLS BAR & INDICATORS
   -------------------------------------------------------------------------- */

.carousel-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.85rem;
  position: relative;
  z-index: 20;
}

.carousel-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.carousel-nav-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 180ms ease;
}

.carousel-nav-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 122, 0, 0.6);
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.35);
}

.carousel-nav-btn:active {
  transform: scale(0.96);
}

.carousel-prev:hover svg {
  transform: translateX(-2.5px);
}

.carousel-next:hover svg {
  transform: translateX(2.5px);
}

.carousel-indicators {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.85);
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.carousel-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--color-text-muted, #94a3b8);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-indicator .indicator-bar {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-indicator:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.carousel-indicator.is-active {
  background: linear-gradient(135deg, #FF851A 0%, #EA580C 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(255, 122, 0, 0.45);
}

.carousel-indicator.is-active .indicator-bar {
  background: #FFFFFF;
  box-shadow: 0 0 8px #FFFFFF;
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   CAMPUS STATS BAR (PRESERVED & POLISHED)
   -------------------------------------------------------------------------- */

.campus-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  margin-bottom: 3.5rem;
  align-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .campus-stats-bar {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1.5rem;
  }
}

.campus-stat {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.stat-number {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 15px rgba(255, 122, 0, 0.3);
  display: inline-block;
  will-change: transform, color, text-shadow;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.stat-number.is-counting {
  color: #38BDF8;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.6), 0 0 30px rgba(255, 122, 0, 0.35);
}

.stat-number.is-complete {
  color: #FFFFFF;
  text-shadow: 0 0 18px rgba(255, 122, 0, 0.4);
  animation: statNumberPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes statNumberPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.stat-label {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.campus-stat-divider {
  display: none;
  width: 1px;
  height: 48px;
  background-color: var(--color-border);
}

@media (min-width: 768px) {
  .campus-stat-divider {
    display: block;
  }
}

@media (max-width: 640px) {
  .campus-stats-bar {
    grid-template-columns: 1fr;
    padding: 1.15rem 0.95rem;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .campus-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .stat-number {
    font-size: 1.35rem;
    order: 2;
  }

  .stat-label {
    font-size: 0.8rem;
    text-align: left;
    order: 1;
    max-width: 65%;
  }
}

/* --------------------------------------------------------------------------
   TOUR INVITATION CTA
   -------------------------------------------------------------------------- */

.experience-cta-wrap {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 122, 0, 0.15);
}

.experience-invitation {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.experience-cta-sub {
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: #E2E8F0;
  max-width: 650px;
  margin: 0 auto 2rem auto;
  line-height: 1.65;
  font-weight: 450;
}

@media (max-width: 540px) {
  .experience-cta-wrap .flex-center {
    flex-direction: column;
    align-items: stretch;
  }
  .experience-cta-wrap .btn {
    width: 100%;
  }
}

/* ==========================================================================
   RESPONSIVE: TABLET (<= 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --carousel-card-width: 500px;
    --carousel-stage-height: 460px;
    --carousel-side-offset: 260px;
    --carousel-rotation: 16deg;
    --carousel-depth: 60px;
  }

  .carousel-indicator .indicator-label {
    display: none;
  }

  .carousel-indicator {
    padding: 0.4rem 0.55rem;
  }
}

/* ==========================================================================
   RESPONSIVE: MOBILE (<= 768px)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --carousel-card-width: min(400px, calc(100vw - 32px));
    --carousel-stage-height: 440px;
    --carousel-side-offset: 145px;
    --carousel-rotation: 12deg;
    --carousel-depth: 35px;
  }

  .learning-carousel-wrapper {
    margin-top: 1.25rem;
    margin-bottom: 2rem;
  }

  .carousel-card:not(.is-center) {
    opacity: 0.35 !important;
    filter: brightness(0.6) blur(1px);
  }

  .card-visual {
    aspect-ratio: 16 / 10;
    max-height: 220px;
    min-height: 185px;
  }

  .card-visual img {
    object-position: center 35%;
  }

  .card-body {
    padding: 0.95rem 1.1rem 1.1rem;
  }

  .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .card-desc {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.55rem;
  }

  .card-specs {
    gap: 0.35rem;
    padding-top: 0.5rem;
  }

  .card-specs .spec-item {
    padding: 0.4rem 0.6rem;
    gap: 0.6rem;
  }

  /* Show 2 high-impact specs on mobile to keep stage snug and legible */
  .card-specs .spec-item:nth-child(3) {
    display: none;
  }

  .spec-icon-wrap {
    width: 26px;
    height: 26px;
  }

  .spec-icon-wrap svg {
    width: 14px;
    height: 14px;
  }

  .spec-content strong {
    font-size: 0.78rem;
  }

  .spec-content p {
    font-size: 0.7rem;
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-nav-btn svg {
    width: 17px;
    height: 17px;
  }

  .carousel-controls-bar {
    gap: 0.85rem;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   RESPONSIVE: SMALL MOBILE (<= 420px)
   ========================================================================== */

@media (max-width: 420px) {
  :root {
    --carousel-card-width: min(340px, calc(100vw - 20px));
    --carousel-stage-height: 420px;
    --carousel-side-offset: 95px;
    --carousel-rotation: 8deg;
    --carousel-depth: 18px;
  }

  .carousel-card:not(.is-center) {
    opacity: 0.25 !important;
    filter: brightness(0.5) blur(1.5px);
  }

  .card-visual {
    aspect-ratio: 16 / 10;
    max-height: 195px;
    min-height: 170px;
  }

  .card-visual img {
    object-position: center 35%;
  }

  .card-visual-pill {
    font-size: 0.66rem;
    padding: 0.2rem 0.55rem;
    bottom: 0.45rem;
    left: 0.45rem;
  }

  .card-body {
    padding: 0.8rem 0.85rem;
  }

  .card-title {
    font-size: 1.02rem;
  }

  .card-action-chip {
    min-height: 40px;
    padding: 0.45rem 0.65rem;
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   RESPONSIVE: ULTRA-NARROW PHONES (<= 360px & down to 320px)
   ========================================================================== */

@media (max-width: 360px) {
  :root {
    --carousel-card-width: min(305px, calc(100vw - 16px));
    --carousel-stage-height: 395px;
    --carousel-side-offset: 65px;
    --carousel-rotation: 4deg;
    --carousel-depth: 10px;
  }

  .card-visual {
    aspect-ratio: 16 / 10;
    max-height: 175px;
    min-height: 155px;
  }

  .card-visual img {
    object-position: center 35%;
  }

  .card-body {
    padding: 0.75rem 0.7rem;
  }

  .card-title {
    font-size: 0.94rem;
    line-height: 1.22;
  }

  .card-desc {
    font-size: 0.76rem;
    line-height: 1.32;
    margin-bottom: 0.45rem;
  }

  .card-specs {
    gap: 0.3rem;
    padding-top: 0.4rem;
  }

  .card-specs .spec-item {
    padding: 0.32rem 0.5rem;
    gap: 0.45rem;
  }

  .spec-icon-wrap {
    width: 22px;
    height: 22px;
  }

  .spec-content strong {
    font-size: 0.74rem;
  }

  .spec-content p {
    font-size: 0.66rem;
  }

  .card-action-chip {
    min-height: 38px;
    font-size: 0.7rem;
    padding: 0.38rem 0.55rem;
  }

  .carousel-nav-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-nav-btn svg {
    width: 14px;
    height: 14px;
  }

  .carousel-controls-bar {
    gap: 0.55rem;
    margin-top: 0.75rem;
  }
}

@media (max-width: 320px) {
  :root {
    --carousel-card-width: 285px;
    --carousel-stage-height: 470px;
    --carousel-side-offset: 40px;
    --carousel-rotation: 2deg;
    --carousel-depth: 6px;
  }

  .card-visual {
    aspect-ratio: 16 / 10;
    max-height: 160px;
    min-height: 140px;
  }

  .card-body {
    padding: 0.65rem 0.55rem;
  }
}

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .carousel-card {
    transition: none !important;
  }
  .card-inner,
  .card-visual img,
  .carousel-nav-btn,
  .carousel-indicator,
  .spec-item,
  .card-action-chip {
    transition: none !important;
  }
  .pulsing-dot {
    animation: none !important;
  }
}
