.apart-section {
  max-width: 960px;
  margin: 60px auto;
  padding: 60px 24px 80px;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #094a8b;
  text-align: center;
  position: relative;
  background: #e3f1fd;
  border-radius: 36px;
  box-shadow: 0 24px 48px rgba(15,94,186,0.18);
  overflow: visible;
}

.apart-header {
  position: relative;
  margin-bottom: 50px;
}

.apart-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffb347;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Fredericka the Great', cursive;
  margin-bottom: 0.15em;
  position: relative;
  display: inline-block;
  user-select: none;
  cursor: default;
  text-shadow: 0 0 15px #ffcd75;
  animation: textGlowBounce 2.8s ease-in-out infinite;
}

.apart-underline {
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 110px;
  height: 8px;
  background: linear-gradient(270deg, #ffcc00, #ff8c00);
  border-radius: 6px;
  box-shadow: 0 0 20px #ffae00bb, 0 0 40px #ffb93d88;
  transform: translateX(-50%);
  animation: shimmerMove 3.2s linear infinite;
}

.apart-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.apart-card {
  background: linear-gradient(145deg, #fff7e7, #ffe4b3);
  border-radius: 36px;
  width: 260px;
  padding: 28px 26px 32px 26px;
  box-shadow: 0 8px 20px rgba(255,174,0,0.35);
  transition: transform 0.35s cubic-bezier(.24,.51,.39,1.07), box-shadow 0.35s ease;
  position: relative;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.apart-card:hover {
  transform: translateY(-14px) rotate(2deg) scale(1.08);
  box-shadow: 0 20px 54px #ffb300cc, 0 0 18px 6px #ffae0077;
  z-index: 15;
}

.apart-card::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, #ffcd7b88, transparent 70%);
  top: -30px;
  left: -30px;
  filter: blur(15px);
  opacity: 0.6;
  animation: floatConfetti 5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.apart-card:nth-child(odd)::before {
  left: auto;
  right: -30px;
  top: -40px;
  background: radial-gradient(circle at top right, #ffb94caa, transparent 75%);
  animation-duration: 6s;
}

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

.apart-icon-circle {
  font-size: 3rem;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb22a, #ffde7e);
  color: #5a3e00;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 6px 14px #ffca3499,
    inset 0 0 30px #ffca3499;
  animation: bounceIcon 2.6s ease-in-out infinite;
  user-select: none;
}

@keyframes bounceIcon {
  0%, 100% {transform: translateY(0) scale(1);}
  50% {transform: translateY(-15%) scale(1.1);}
}

.apart-card h3 {
  font-size: 1.5rem;
  color: #5a3e00;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px #f4b900dd;
}

.apart-card p {
  font-size: 1rem;
  color: #7a5621;
  line-height: 1.6;
  font-weight: 600;
}

@keyframes textGlowBounce {
  0%, 100% { text-shadow: 0 0 18px #ffdd66cc; }
  50% { text-shadow: 0 0 30px #ffcc0099; }
}

@keyframes shimmerMove {
  0% {background-position: 0 50%;}
  100% {background-position: 200% 50%;}
}

.fade-in-up {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
  to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 780px) {
  .apart-section {
    padding: 42px 18px 68px;
  }
  .apart-title {
    font-size: 2.3rem;
  }
  .apart-cards {
    gap: 22px;
  }
  .apart-card {
    width: 90vw;
    max-width: 320px;
  }
  .apart-icon-circle {
    width: 60px;
    height: 60px;
    font-size: 2.2rem;
    box-shadow: 0 4px 11px #ffbe2eaa, inset 0 0 18px #ffbe2eaa;
  }
  .apart-card h3 {
    font-size: 1.3rem;
  }
  .apart-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 460px) {
  .apart-cards { grid-template-columns: 1fr; }
}
