/* === CIOZERO Programs Section (scoped) === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Scope everything under .cz-programs to avoid site-wide side effects */
.cz-programs, .cz-programs * {
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Background & containers */
.cz-programs.gradient-bg {
  background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0f1d32 100%);
  color: #fff;
}

.cz-programs .container {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 56px 20px;
}

.cz-programs .section-header {
  max-width: 820px;
  margin-bottom: 28px;
}



.cz-programs .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .cz-programs .cards { grid-template-columns: 1fr; }
}

.cz-programs .card-gradient {
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  padding: 20px;
}

/* Accent line (with base width so the hover animation is smooth) */
.cz-programs .accent-line {
  display: block;
  height: 3px;
  width: 48px;               /* Base state for animation */
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 14px;
}

/* Card hover effect */
.cz-programs .card-hover {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.cz-programs .card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.1);
}
.cz-programs .card-hover:hover .accent-line {
  width: 100%;
}

.cz-programs .subhead {
  color: #cbd5e1;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.cz-programs .desc {
  color: #e2e8f0;
  margin: 0 0 16px 0;
}

/* Buttons (namespaced to avoid framework collisions) */
.cz-programs .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
}
.cz-programs .btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 8px 25px -5px rgba(59,130,246,0.4);
}
.cz-programs .btn-primary:active {
  transform: translateY(1px);
}

/* Icon container */
.cz-programs .icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(6,182,212,0.1) 100%);
  color: #8ec5ff;
}

/* Animation */
@keyframes cz-fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cz-programs .animate-fade-in-up {
  animation: cz-fadeInUp 0.6s ease-out forwards;
}
.cz-programs .animate-delay-1 { animation-delay: 0.1s; }
.cz-programs .animate-delay-2 { animation-delay: 0.2s; }
.cz-programs .animate-delay-3 { animation-delay: 0.3s; }
.cz-programs .animate-delay-4 { animation-delay: 0.4s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .cz-programs .card-hover,
  .cz-programs .accent-line,
  .cz-programs .animate-fade-in-up {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
