/* ===================================
   FOUR PILLARS V3 - PREMIUM DESIGN
   =================================== */

.pillar-section-v3 {
  position: relative;
}

/* Pillar Header - Premium Style */
.pillar-header-v3 {
  background: white;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pillar-header-v3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0066cc, #004999);
}

.pillar-header-blue::before {
  background: linear-gradient(90deg, #0066cc, #004999);
}

.pillar-header-green::before {
  background: linear-gradient(90deg, #16a34a, #15803d);
}

.pillar-header-purple::before {
  background: linear-gradient(90deg, #9333ea, #7e22ce);
}

.pillar-header-red::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.pillar-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.pillar-header-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0066cc, #004999);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.pillar-header-green .pillar-header-icon {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.pillar-header-purple .pillar-header-icon {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
}

.pillar-header-red .pillar-header-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.pillar-header-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.pillar-header-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.pillar-header-badge {
  flex-shrink: 0;
}

.bg-primary-soft {
  background: linear-gradient(
    135deg,
    #dbeafe,
    #bfdbfe
  ) !important;
  color: #0066cc !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
}

.bg-success-soft {
  background: linear-gradient(
    135deg,
    #dcfce7,
    #bbf7d0
  ) !important;
  color: #16a34a !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
}

.bg-purple-soft {
  background: linear-gradient(
    135deg,
    #f3e8ff,
    #e9d5ff
  ) !important;
  color: #9333ea !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
}

.bg-danger-soft {
  background: linear-gradient(
    135deg,
    #fee2e2,
    #fecaca
  ) !important;
  color: #ef4444 !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
}

/* Module Cards Row */
.pillar-modules-row {
  background: white;
  border-radius: 0 0 1.5rem 1.5rem;
  padding: 2rem 2.5rem 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Individual Module Cards - Premium Design */
.module-card-v3 {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 2px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 240px;
}

.module-card-v3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0066cc, #004999);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.module-card-v3:hover::before {
  transform: scaleX(1);
}

.module-card-v3:hover {
  transform: translateY(-8px);
  border-color: #0066cc;
  box-shadow: 0 16px 40px rgba(0, 102, 204, 0.2);
  background: white;
}

/* Module Card Shine Effect */
.module-card-shine {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.6s ease;
}

.module-card-v3:hover .module-card-shine {
  opacity: 1;
  right: 150%;
}

/* Module Card Icon */
.module-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.module-icon-blue {
  background: linear-gradient(135deg, #0066cc, #0052a3);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.25);
}

.module-icon-green {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.module-icon-purple {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.25);
}

.module-icon-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}

.module-card-v3:hover .module-card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Module Card Content */
.module-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.module-card-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.module-card-footer {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  right: 1.75rem;
  display: flex;
  justify-content: flex-end;
}

.module-card-link {
  color: #0066cc;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.module-card-link i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.module-card-v3:hover .module-card-link {
  gap: 0.5rem;
}

.module-card-v3:hover .module-card-link i {
  transform: translateX(4px);
}

/* Color variants for module cards */
.pillar-section-v3:nth-child(2) .module-card-v3:hover {
  border-color: #0066cc;
  box-shadow: 0 16px 40px rgba(0, 102, 204, 0.2);
}

.pillar-section-v3:nth-child(3) .module-card-v3::before {
  background: linear-gradient(90deg, #16a34a, #15803d);
}

.pillar-section-v3:nth-child(3) .module-card-v3:hover {
  border-color: #16a34a;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.2);
}

.pillar-section-v3:nth-child(3) .module-card-link {
  color: #16a34a;
}

.pillar-section-v3:nth-child(4) .module-card-v3::before {
  background: linear-gradient(90deg, #9333ea, #7e22ce);
}

.pillar-section-v3:nth-child(4) .module-card-v3:hover {
  border-color: #9333ea;
  box-shadow: 0 16px 40px rgba(147, 51, 234, 0.2);
}

.pillar-section-v3:nth-child(4) .module-card-link {
  color: #9333ea;
}

.pillar-section-v3:nth-child(5) .module-card-v3::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.pillar-section-v3:nth-child(5) .module-card-v3:hover {
  border-color: #ef4444;
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.2);
}

.pillar-section-v3:nth-child(5) .module-card-link {
  color: #ef4444;
}

/* Responsive Design for Four Pillars V3 */
@media (max-width: 992px) {
  .pillar-header-v3 {
    padding: 1.75rem 2rem;
  }

  .pillar-modules-row {
    padding: 1.75rem 2rem 2rem;
  }

  .pillar-header-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .pillar-header-title {
    font-size: 1.5rem;
  }

  .pillar-header-subtitle {
    font-size: 0.875rem;
  }

  .module-card-v3 {
    min-height: 220px;
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .pillar-header-v3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .pillar-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pillar-header-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .pillar-header-title {
    font-size: 1.375rem;
  }

  .pillar-header-badge {
    align-self: flex-start;
  }

  .pillar-modules-row {
    padding: 1.5rem;
  }

  .module-card-v3 {
    min-height: auto;
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .module-card-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .module-card-title {
    font-size: 1.125rem;
  }

  .module-card-description {
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
  }

  .module-card-footer {
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 576px) {
  .pillar-header-v3 {
    border-radius: 1rem 1rem 0 0;
  }

  .pillar-modules-row {
    border-radius: 0 0 1rem 1rem;
  }

  .module-card-v3 {
    border-radius: 1rem;
  }
}

/* Animation for Module Cards */
@keyframes fadeInUpModule {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.module-card-v3 {
  animation: fadeInUpModule 0.6s ease-out;
}

.module-card-v3:nth-child(1) {
  animation-delay: 0.1s;
}

.module-card-v3:nth-child(2) {
  animation-delay: 0.2s;
}

.module-card-v3:nth-child(3) {
  animation-delay: 0.3s;
}

.module-card-v3:nth-child(4) {
  animation-delay: 0.4s;
}