/* ==========================================
   LEARN ANYWHERE - Redesigned V3 (Viewport Optimized)
   Fits entire section on standard desktop without scrolling
   ========================================== */
.pp-learn-new {
  padding: 60px 0;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 50%, #FAFBFC 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.pp-learn-new::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(57, 66, 157, 0.06) 0%, rgba(99, 102, 241, 0.03) 50%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}

.pp-learn-new__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ==========================================
   VISUAL SIDE - Device Mockups (Compact)
   ========================================== */
.pp-learn-new__devices {
  position: relative;
  height: 520px;
}

/* Desktop Device */
.pp-learn-new__desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 88%;
  z-index: 2;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.pp-learn-new__desktop-frame {
  background: #1E293B;
  border-radius: 14px;
  padding: 7px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 
              0 12px 25px -8px rgba(57, 66, 157, 0.2);
  transition: transform 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pp-learn-new__desktop:hover .pp-learn-new__desktop-frame {
  transform: scale(1.02);
}

.pp-learn-new__desktop-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  overflow: hidden;
  background: #0F172A;
  position: relative;
}

.pp-learn-new__desktop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-learn-new__desktop-base {
  height: 7px;
  background: #0F172A;
  border-radius: 0 0 7px 7px;
  margin-top: 3px;
}

/* Mobile Device */
.pp-learn-new__mobile {
  position: absolute;
  bottom: 30px;
  right: 0;
  width: 46%;
  z-index: 3;
  animation: float 8s ease-in-out infinite;
  animation-delay: 1s;
}

.pp-learn-new__mobile-frame {
  background: #1E293B;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35), 
              0 10px 20px -8px rgba(57, 66, 157, 0.25);
  transition: transform 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pp-learn-new__mobile:hover .pp-learn-new__mobile-frame {
  transform: scale(1.05);
}

.pp-learn-new__mobile-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0F172A;
  border-radius: 9999px;
  z-index: 2;
}

.pp-learn-new__mobile-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #1E1B4B 0%, #2E2A69 50%, #39429d 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-learn-new__mobile-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pp-learn-new__mobile-logo {
  width: 60% !important;
  height: auto !important;
  object-fit: contain !important;
  max-width: 200px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Floating Stats Cards - Compact */
.pp-learn-new__stat-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 
              0 5px 12px rgba(57, 66, 157, 0.12),
              0 1px 0 0 rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.pp-learn-new__stat-card--1 {
  top: 50px;
  right: -15px;
  animation-delay: 0s;
}

.pp-learn-new__stat-card--2 {
  top: 48%;
  left: -25px;
  animation-delay: 1s;
}

.pp-learn-new__stat-card--3 {
  bottom: 80px;
  right: 35px;
  animation-delay: 2s;
}

.pp-learn-new__stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(57, 66, 157, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.pp-learn-new__stat-icon svg {
  width: 18px;
  height: 18px;
}

.pp-learn-new__stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pp-learn-new__stat-info strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pp-learn-new__stat-info span {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
}

/* ==========================================
   CONTENT SIDE (Compact)
   ========================================== */
.pp-learn-new__content {
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Badge */
.pp-learn-new__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(57, 66, 157, 0.1) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1.5px solid rgba(57, 66, 157, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(57, 66, 157, 0.15);
  align-self: flex-start;
}

.pp-learn-new__badge svg {
  width: 16px;
  height: 16px;
}

/* Title */
.pp-learn-new__title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--pp-navy);
  letter-spacing: -0.03em;
}

.pp-learn-new__title strong {
  background: linear-gradient(135deg, #1E1B4B 0%, #39429d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pp-learn-new__title-light {
  font-weight: 300;
  background: linear-gradient(135deg, #1E1B4B 0%, #39429d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pp-learn-new__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 28px;
  max-width: 540px;
  font-weight: 400;
}

/* Features Grid - Compact 2x2 */
.pp-learn-new__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.pp-learn-new__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px dotted rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.pp-learn-new__feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(57, 66, 157, 0.02) 0%, rgba(99, 102, 241, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.pp-learn-new__feature:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--color-primary);
  border-style: dotted;
  box-shadow: 0 14px 35px -10px rgba(57, 66, 157, 0.25), 
              0 5px 14px -5px rgba(0, 0, 0, 0.1);
}

.pp-learn-new__feature:hover::before {
  opacity: 1;
}

.pp-learn-new__feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(57, 66, 157, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: all 0.35s ease;
  position: relative;
  z-index: 1;
}

.pp-learn-new__feature:hover .pp-learn-new__feature-icon {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(57, 66, 157, 0.12);
  box-shadow: 0 6px 16px -5px rgba(57, 66, 157, 0.3);
}

.pp-learn-new__feature-icon svg {
  width: 20px;
  height: 20px;
}

.pp-learn-new__feature-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.pp-learn-new__feature-content h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0 0 5px;
  letter-spacing: -0.02em;
}

.pp-learn-new__feature-content p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 0;
}

/* CTA Buttons */
.pp-learn-new__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .pp-learn-new {
    min-height: auto;
    padding: 80px 0;
  }
  
  .pp-learn-new__wrapper {
    grid-template-columns: 1fr;
    gap: 70px;
  }
  
  .pp-learn-new__content {
    padding-right: 0;
    order: 2;
  }
  
  .pp-learn-new__visual {
    order: 1;
  }
  
  .pp-learn-new__devices {
    height: 550px;
    max-width: 700px;
    margin: 0 auto;
  }
  
  .pp-learn-new__desktop {
    width: 90%;
  }
  
  .pp-learn-new__stat-card--1 {
    right: 0;
  }
  
  .pp-learn-new__stat-card--2 {
    left: 0;
  }
  
  .pp-learn-new__features {
    gap: 14px;
  }
  
  .pp-learn-new__feature {
    padding: 22px 20px;
  }
}

@media (max-width: 768px) {
  .pp-learn-new {
    padding: 70px 0;
  }
  
  .pp-learn-new__wrapper {
    gap: 50px;
  }
  
  .pp-learn-new__title {
    font-size: 38px;
  }
  
  .pp-learn-new__desc {
    font-size: 15px;
  }
  
  .pp-learn-new__devices {
    height: 450px;
  }
  
  .pp-learn-new__desktop {
    width: 92%;
  }
  
  .pp-learn-new__mobile {
    width: 50%;
  }
  
  .pp-learn-new__stat-card {
    display: none;
  }
  
  .pp-learn-new__features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .pp-learn-new__feature {
    padding: 20px 18px;
  }
  
  .pp-learn-new__feature-icon {
    width: 42px;
    height: 42px;
  }
  
  .pp-learn-new__feature-content h3 {
    font-size: 16px;
  }
  
  .pp-learn-new__feature-content p {
    font-size: 14px;
  }
  
  .pp-learn-new__actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .pp-learn-new__actions .pp-btn {
    justify-content: center;
  }
}
