/* ============================================================
   HOMEPAGE STYLES — Happy Blue Lessons
   ============================================================ */

/* Reset Astra parent margins on #primary container */
#primary.hbl-homepage {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ── Animații Keyframes ── */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-reverse {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-1.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

/* ── 1. HERO SECTION ── */
.hbl-hero {
  position: relative;
  padding: 8rem 0 5rem;
  background: radial-gradient(circle at 10% 20%, var(--hbl-blue-50) 0%, #ffffff 90%);
  overflow: hidden;
}

/* Background decorations */
.hbl-hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hbl-hero__grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

.hbl-hero__circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hbl-hero__circle--1 {
  top: -10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--hbl-blue-200);
}

.hbl-hero__circle--2 {
  bottom: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: var(--hbl-happy-200);
}

.hbl-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--hbl-space-3xl);
  align-items: center;
  z-index: 1;
}

.hbl-hero__content {
  max-width: 620px;
}

.hbl-hero__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--hbl-blue-100);
  color: var(--hbl-blue-800);
  font-family: var(--hbl-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--hbl-radius-full);
  margin-bottom: var(--hbl-space-lg);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.hbl-hero__title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: var(--hbl-space-lg);
  letter-spacing: -0.02em;
}

.hbl-hero__subtitle {
  font-size: 1.125rem;
  color: var(--hbl-gray-600);
  margin-bottom: var(--hbl-space-2xl);
  line-height: 1.6;
}

.hbl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hbl-space-md);
}

/* Blackboard (Visual block) */
.hbl-hero__visual {
  display: flex;
  justify-content: center;
}

.hbl-blackboard {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #0f1e16; /* Deep green board */
  border: 12px solid #5c4033; /* Wood outline frame */
  border-radius: var(--hbl-radius-lg);
  box-shadow: var(--hbl-shadow-xl), 0 10px 30px rgba(0,0,0,0.2);
}

.hbl-blackboard__glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hbl-blackboard__frame {
  position: relative;
  padding: 8px;
}

.hbl-blackboard__svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating formulas keyframe triggers */
.hbl-float-formula {
  transform-origin: center;
}

.hbl-float-formula--1 { animation: float 6s ease-in-out infinite; }
.hbl-float-formula--2 { animation: float-reverse 5s ease-in-out infinite; }
.hbl-float-formula--3 { animation: float 7s ease-in-out infinite 1s; }
.hbl-float-formula--4 { animation: float-reverse 8s ease-in-out infinite 0.5s; }

/* Draw animated curve on load */
.hbl-hero-curve {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-path 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hbl-hero-curve-glow {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-path 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  filter: blur(4px);
}

/* Glassmorphism Badge 10 */
.hbl-hero-badge-10 {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 76px;
  height: 76px;
  border-radius: var(--hbl-radius-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite 0.5s;
}

.hbl-hero-badge-10__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.hbl-hero-badge-10__label {
  font-size: 0.625rem;
  color: var(--hbl-happy-200);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.hbl-hero-badge-10__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--hbl-happy-400);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.hbl-pulse-dot {
  animation: pulse-glow 2s infinite;
  transform-origin: center;
}

/* ── 2. DESPRE NOI PE SCURT ── */
.hbl-about-short__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--hbl-space-3xl);
  align-items: center;
}

.hbl-section-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hbl-blue-500);
  font-weight: 700;
  display: block;
  margin-bottom: var(--hbl-space-sm);
}

.hbl-about-short__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--hbl-space-lg);
}

.hbl-about-short__text {
  font-size: 1.0625rem;
  color: var(--hbl-gray-600);
  margin-bottom: var(--hbl-space-2xl);
}

.hbl-about-short__stats {
  display: flex;
  gap: var(--hbl-space-2xl);
}

.hbl-stat-box {
  display: flex;
  flex-direction: column;
}

.hbl-stat-box__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--hbl-blue-900);
  line-height: 1;
}

.hbl-stat-box__suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hbl-blue-500);
}

.hbl-stat-box__label {
  font-size: 0.875rem;
  color: var(--hbl-gray-500);
  margin-top: var(--hbl-space-xs);
  font-weight: 500;
}

/* Dual cards alignment (Happy vs Blue) */
.hbl-dual-cards {
  display: flex;
  flex-direction: column;
  gap: var(--hbl-space-lg);
  position: relative;
}

.hbl-dual-card {
  padding: var(--hbl-space-lg) var(--hbl-space-xl) !important;
}

.hbl-dual-card__header {
  display: flex;
  align-items: center;
  gap: var(--hbl-space-md);
  margin-bottom: var(--hbl-space-sm);
}

.hbl-dual-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hbl-dual-card--happy {
  border-left: 4px solid var(--hbl-happy-400);
}

.hbl-dual-card--happy .hbl-dual-card__icon {
  background: var(--hbl-happy-100);
  color: var(--hbl-happy-600);
}

.hbl-dual-card--happy h3 {
  color: var(--hbl-happy-600);
  margin: 0;
  font-size: 1.15rem;
}

.hbl-dual-card--blue {
  border-left: 4px solid var(--hbl-blue-500);
}

.hbl-dual-card--blue .hbl-dual-card__icon {
  background: var(--hbl-blue-100);
  color: var(--hbl-blue-600);
}

.hbl-dual-card--blue h3 {
  color: var(--hbl-blue-800);
  margin: 0;
  font-size: 1.15rem;
}

.hbl-dual-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--hbl-gray-600);
  line-height: 1.5;
}

/* Offset cards overlap on desktop */
@media (min-width: 1025px) {
  .hbl-dual-card--happy {
    transform: translateX(-30px);
  }
  .hbl-dual-card--blue {
    transform: translateX(10px);
  }
}

/* ── 3. PROGRESS SIMULATOR ── */
.hbl-simulator {
  background: var(--hbl-white);
  border-top: 1px solid var(--hbl-gray-100);
  border-bottom: 1px solid var(--hbl-gray-100);
}

.hbl-simulator__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.hbl-simulator__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--hbl-space-md);
}

.hbl-simulator__desc {
  font-size: 1.0625rem;
  color: var(--hbl-gray-600);
}

.hbl-simulator__widget {
  background: var(--hbl-gray-50);
  border-radius: var(--hbl-radius-xl);
  padding: var(--hbl-space-2xl);
  border: 1px solid var(--hbl-gray-200);
  box-shadow: var(--hbl-shadow-md);
}

/* Slider Custom design */
.hbl-simulator__controls {
  margin-bottom: 3rem;
}

.hbl-simulator__steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.hbl-sim-step-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hbl-gray-400);
  transition: color var(--hbl-transition-base);
  cursor: pointer;
  width: 30%;
  text-align: center;
}

.hbl-sim-step-label:first-child { text-align: left; }
.hbl-sim-step-label:last-child { text-align: right; }

.hbl-sim-step-label.active {
  color: var(--hbl-blue-600);
}

.hbl-sim-step-label.active[data-step="3"] {
  color: var(--hbl-happy-600);
}

.hbl-simulator__slider-container {
  position: relative;
  width: 100%;
  height: 8px;
}

.hbl-simulator__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  z-index: 10;
  cursor: pointer;
  margin: 0;
}

/* Remove default track/thumb styling */
.hbl-simulator__slider::-webkit-slider-runnable-track { background: transparent; }
.hbl-simulator__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hbl-blue-500);
  border: 4px solid var(--hbl-white);
  box-shadow: var(--hbl-shadow-md);
  margin-top: -8px;
  transition: background var(--hbl-transition-fast), transform var(--hbl-transition-fast);
}

.hbl-simulator__slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.hbl-simulator__slider:active::-webkit-slider-thumb {
  background: var(--hbl-happy-500);
}

/* Track styles */
.hbl-simulator__slider-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--hbl-gray-200);
  border-radius: 4px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hbl-simulator__slider-fill {
  width: 0%;
  height: 100%;
  background: var(--hbl-blue-500);
  border-radius: 4px;
  transition: background var(--hbl-transition-base);
}

/* Simulator Grid output */
.hbl-simulator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hbl-space-2xl);
  align-items: center;
}

.hbl-simulator__graphic {
  background: var(--hbl-white);
  border: 1px solid var(--hbl-gray-200);
  border-radius: var(--hbl-radius-lg);
  padding: var(--hbl-space-md);
  box-shadow: var(--hbl-shadow-sm);
}

.hbl-simulator__canvas {
  width: 100%;
}

.hbl-simulator__svg {
  width: 100%;
  height: auto;
  display: block;
}

#hbl-curve-morph,
#hbl-curve-glow,
#hbl-curve-end {
  transition: d var(--hbl-transition-slow), stroke var(--hbl-transition-slow), fill var(--hbl-transition-slow), cx var(--hbl-transition-slow), cy var(--hbl-transition-slow);
}

/* Details card output styles */
.hbl-simulator__details {
  display: flex;
  flex-direction: column;
}

.hbl-simulator__detail-card {
  background: var(--hbl-white);
  border: 1px solid var(--hbl-gray-200);
  border-radius: var(--hbl-radius-lg);
  padding: var(--hbl-space-xl);
  box-shadow: var(--hbl-shadow-md);
  transition: border-color var(--hbl-transition-slow), box-shadow var(--hbl-transition-slow);
}

.hbl-simulator__row {
  display: flex;
  flex-direction: column;
  padding: var(--hbl-space-sm) 0;
  border-bottom: 1px solid var(--hbl-gray-100);
}

.hbl-simulator__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hbl-simulator__row:first-child {
  padding-top: 0;
}

.hbl-simulator__row-label {
  font-size: 0.8125rem;
  color: var(--hbl-gray-400);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.hbl-simulator__row-value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--hbl-blue-900);
  transition: color var(--hbl-transition-slow);
}

/* ── 4. SERVICII PE SCURT SECTION ── */
.hbl-services-short-sec__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.hbl-services-short-sec__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--hbl-space-md);
}

.hbl-services-short-sec__desc {
  font-size: 1.0625rem;
  color: var(--hbl-gray-600);
}

.hbl-services-cat__title {
  display: flex;
  align-items: center;
  gap: var(--hbl-space-sm);
  font-size: 1.35rem;
  color: var(--hbl-blue-800);
  margin-bottom: var(--hbl-space-xl);
  border-bottom: 2px solid var(--hbl-blue-100);
  padding-bottom: var(--hbl-space-sm);
}

.hbl-services-cat__icon {
  color: var(--hbl-blue-500);
}

.hbl-services-grid {
  display: grid;
  gap: var(--hbl-space-xl);
}

.hbl-services-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.hbl-services-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Service Card visual style */
.hbl-service-card {
  position: relative;
  border-radius: var(--hbl-radius-lg);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--hbl-shadow-sm);
  border: 1px solid var(--hbl-gray-200);
  transition: all var(--hbl-transition-base);
  background-color: var(--hbl-blue-900);
}

/* Background image overlay */
.hbl-service-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  transition: transform var(--hbl-transition-slow);
  opacity: 0.45; /* Dark overlay mix */
  z-index: 1;
}

.hbl-service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 30, 61, 0.4) 0%, rgba(10, 30, 61, 0.95) 90%);
  z-index: 2;
  transition: background var(--hbl-transition-base);
}

.hbl-service-card__inner {
  position: relative;
  z-index: 3;
  padding: var(--hbl-space-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.hbl-service-card__tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--hbl-white);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--hbl-radius-sm);
  text-transform: uppercase;
  margin-bottom: var(--hbl-space-md);
  letter-spacing: 0.05em;
}

.hbl-service-card__title {
  color: var(--hbl-white);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--hbl-space-sm);
  transition: color var(--hbl-transition-fast);
}

.hbl-service-card__desc {
  color: var(--hbl-gray-300);
  font-size: 0.8125rem;
  line-height: 1.4;
  margin-bottom: var(--hbl-space-lg);
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hbl-service-card__link {
  display: flex;
  align-items: center;
  gap: var(--hbl-space-xs);
  color: var(--hbl-happy-400);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap var(--hbl-transition-fast), color var(--hbl-transition-fast);
}

.hbl-service-card__link svg {
  transition: transform var(--hbl-transition-fast);
}

/* Card hover animation states */
.hbl-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hbl-shadow-xl);
  border-color: var(--hbl-blue-500);
}

.hbl-service-card:hover .hbl-service-card__bg {
  transform: scale(1.08);
  opacity: 0.55;
}

.hbl-service-card:hover .hbl-service-card__link {
  color: var(--hbl-white);
  gap: var(--hbl-space-sm);
}

.hbl-service-card:hover .hbl-service-card__link svg {
  transform: translateX(3px);
}

/* ── 5. DE CE HAPPY BLUE LESSONS ── */
.hbl-why-us {
  background: var(--hbl-white);
}

.hbl-why-us__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--hbl-space-xl);
}

/* 3D tilt interaction setup */
.hbl-usp-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  padding: 2.25rem !important;
}

.hbl-usp-card__icon {
  margin-bottom: var(--hbl-space-lg);
  display: inline-flex;
}

.hbl-usp-card__title {
  font-size: 1.15rem;
  margin-bottom: var(--hbl-space-sm);
  color: var(--hbl-blue-900);
  font-weight: 700;
}

.hbl-usp-card__text {
  font-size: 0.875rem;
  color: var(--hbl-gray-600);
  margin: 0;
  line-height: 1.5;
}

/* Wide bottom card layout */
.hbl-usp-card--wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: var(--hbl-space-xl);
}

.hbl-usp-card--wide .hbl-usp-card__icon {
  margin-bottom: 0;
}

.hbl-usp-card--wide .hbl-usp-card__content {
  flex: 1;
}

/* ── 6. PROMO BANNER (Bandă de înscriere) ── */
.hbl-promo-banner {
  padding: var(--hbl-space-2xl) 0;
}

.hbl-promo-banner__inner {
  background: linear-gradient(135deg, var(--hbl-blue-900) 0%, var(--hbl-blue-700) 100%);
  border-radius: var(--hbl-radius-xl);
  padding: 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hbl-space-2xl);
  box-shadow: var(--hbl-shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hbl-promo-banner__inner::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hbl-promo-banner__content {
  max-width: 600px;
}

.hbl-promo-banner__title {
  color: var(--hbl-happy-400);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--hbl-space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hbl-promo-banner__text {
  color: var(--hbl-white);
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.5;
}

.hbl-btn--pulsing {
  animation: pulse-glow 2s infinite;
}

/* ── 7. CONTACT BANNER (Bandă finală) ── */
.hbl-contact-banner {
  text-align: center;
  background: radial-gradient(circle at center, var(--hbl-blue-50) 0%, #ffffff 100%);
  padding: 6rem 0;
  border-top: 1px solid var(--hbl-gray-100);
}

.hbl-contact-banner__title {
  font-size: 2.25rem;
  margin-bottom: var(--hbl-space-md);
  color: var(--hbl-blue-900);
}

.hbl-contact-banner__text {
  font-size: 1.125rem;
  color: var(--hbl-gray-600);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ── REVEAL SYSTEM ── */
.hbl-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hbl-reveal--active {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ADAPTABILITY (MOBILE & TABLET) ── */

@media (max-width: 1024px) {
  /* Hero section adjustments */
  .hbl-hero {
    padding: 7rem 0 4rem;
  }

  .hbl-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--hbl-space-2xl);
    text-align: center;
  }

  .hbl-hero__content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hbl-hero__actions {
    justify-content: center;
  }

  .hbl-blackboard {
    max-width: 440px;
    margin: 0 auto;
  }

  /* About short section adjustments */
  .hbl-about-short__grid {
    grid-template-columns: 1fr;
    gap: var(--hbl-space-2xl);
  }

  .hbl-about-short__content {
    text-align: center;
  }

  .hbl-about-short__stats {
    justify-content: center;
  }

  /* Dual cards align nicely without offset */
  .hbl-dual-cards {
    flex-direction: row;
  }

  .hbl-dual-card {
    flex: 1;
  }

  /* Services Grid adjustments */
  .hbl-services-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hbl-section {
    padding: var(--hbl-space-3xl) 0;
  }

  /* Dual cards wrap vertical on mobile */
  .hbl-dual-cards {
    flex-direction: column;
  }

  /* Progress simulator adjustments */
  .hbl-simulator__grid {
    grid-template-columns: 1fr;
    gap: var(--hbl-space-xl);
  }

  .hbl-simulator__steps {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
    align-items: center;
  }

  .hbl-sim-step-label {
    width: 100%;
    text-align: center !important;
  }

  /* Services lists */
  .hbl-services-grid--3,
  .hbl-services-grid--2 {
    grid-template-columns: 1fr;
  }

  .hbl-service-card {
    height: 280px;
  }

  /* USP section */
  .hbl-why-us__grid {
    grid-template-columns: 1fr;
  }

  .hbl-usp-card--wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--hbl-space-md);
  }

  .hbl-usp-card--wide .hbl-usp-card__icon {
    margin-bottom: var(--hbl-space-md);
  }

  /* Promo banner CTA */
  .hbl-promo-banner__inner {
    padding: var(--hbl-space-xl);
    flex-direction: column;
    text-align: center;
    gap: var(--hbl-space-xl);
  }

  .hbl-promo-banner__action,
  .hbl-promo-banner__action .hbl-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hbl-hero__title {
    font-size: 1.85rem;
  }

  .hbl-hero__actions .hbl-btn {
    width: 100%;
  }

  .hbl-blackboard {
    border-width: 8px;
  }

  .hbl-hero-badge-10 {
    top: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
  }

  .hbl-hero-badge-10__number {
    font-size: 1.5rem;
  }

  .hbl-stat-box__number {
    font-size: 2rem;
  }
}


/* ═══════════════════════════════════════════
   TESTIMONIALS / RECENZII — SLIDER
   ═══════════════════════════════════════════ */
.hbl-testimonials {
  padding: var(--hbl-space-3xl) 0;
  background: linear-gradient(180deg, var(--hbl-gray-50) 0%, #ffffff 100%);
  position: relative;
}

.hbl-testimonials::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hbl-testimonials__header {
  text-align: center;
  margin-bottom: var(--hbl-space-2xl);
}

.hbl-testimonials__intro {
  font-size: 1rem;
  color: var(--hbl-gray-500);
  max-width: 520px;
  margin: var(--hbl-space-sm) auto 0;
  line-height: 1.6;
}

/* ── Slider wrapper ── */
.hbl-testimonials__slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.hbl-testimonials__track-wrapper {
  overflow: hidden;
  border-radius: var(--hbl-radius-lg, 16px);
}

.hbl-testimonials__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hbl-testimonials__track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.hbl-testimonials__slide {
  flex: 0 0 50%;
  padding: 0 var(--hbl-space-sm);
  box-sizing: border-box;
}

/* ── Testimonial Card ── */
.hbl-testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: var(--hbl-radius-lg, 16px);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.hbl-testimonial-card:hover {
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.08),
              0 6px 16px rgba(0, 0, 0, 0.04);
}

/* Image wrapper */
.hbl-testimonial-card__img-wrapper {
  flex-shrink: 0;
  width: 200px;
  background: var(--hbl-gray-100);
  overflow: hidden;
  position: relative;
}

.hbl-testimonial-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.hbl-testimonial-card:hover .hbl-testimonial-card__img {
  transform: scale(1.03);
}

/* Body */
.hbl-testimonial-card__body {
  padding: var(--hbl-space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--hbl-space-sm);
  flex-grow: 1;
}

/* Stars */
.hbl-testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: var(--hbl-happy-500, #f59e0b);
}

/* Text */
.hbl-testimonial-card__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--hbl-gray-700, #374151);
  flex-grow: 1;
  font-style: italic;
}

/* Author */
.hbl-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--hbl-space-sm);
  padding-top: var(--hbl-space-sm);
  border-top: 1px solid var(--hbl-gray-100, #f3f4f6);
  margin-top: auto;
}

.hbl-testimonial-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hbl-blue-400, #60a5fa), var(--hbl-happy-400, #fbbf24));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
  text-transform: uppercase;
}

.hbl-testimonial-card__name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--hbl-gray-800, #1f2937);
}

.hbl-testimonial-card__role {
  font-size: 0.72rem;
  color: var(--hbl-gray-500, #6b7280);
  margin-top: 1px;
}

/* Service tag */
.hbl-testimonial-card__service {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--hbl-blue-600, #2563eb);
  background: var(--hbl-blue-50, #eff6ff);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Navigation Arrows ── */
.hbl-testimonials__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  color: #1f2937;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.hbl-testimonials__nav:hover {
  background: var(--hbl-blue-500, #3b82f6);
  color: white;
  border-color: var(--hbl-blue-500, #3b82f6);
  transform: translateY(-50%) scale(1.08);
}

.hbl-testimonials__nav--prev {
  left: 0;
}

.hbl-testimonials__nav--next {
  right: 0;
}

/* ── Dots ── */
.hbl-testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--hbl-space-xl);
}

.hbl-testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--hbl-gray-200, #e5e7eb);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hbl-testimonials__dot.is-active {
  background: var(--hbl-blue-500, #3b82f6);
  transform: scale(1.2);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hbl-testimonials__slider {
    padding: 0 50px;
  }

  .hbl-testimonials__slide {
    flex: 0 0 100%;
  }

  .hbl-testimonials__nav--prev {
    left: 4px;
  }

  .hbl-testimonials__nav--next {
    right: 4px;
  }

  .hbl-testimonial-card {
    flex-direction: column;
  }

  .hbl-testimonial-card__img-wrapper {
    width: 100%;
    height: auto;
  }

  .hbl-testimonial-card__img {
    object-fit: contain;
    height: auto;
    max-height: 480px;
  }
}

@media (max-width: 640px) {
  .hbl-testimonials {
    padding: var(--hbl-space-2xl) 0;
  }

  .hbl-testimonials__slider {
    padding: 0 40px;
  }

  .hbl-testimonials__nav {
    width: 36px;
    height: 36px;
  }

  .hbl-testimonial-card__body {
    padding: var(--hbl-space-md);
  }
}
