.philosophy-section {
  padding: 6rem 0;
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(0, 71, 107, 0.03) 0%, transparent 20%),
              radial-gradient(circle at 90% 80%, rgba(0, 71, 107, 0.03) 0%, transparent 30%);
  z-index: 0;
}

.philosophy-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.philosophy-header {
  text-align: center;
  margin-bottom: 5rem;
}

.philosophy-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.philosophy-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #00476B 0%, #0077B6 100%);
  border-radius: 2px;
}

.philosophy-header p {
  font-size: 1.125rem;
  color: #4a5568;
  max-width: 768px;
  margin: 0 auto;
}

/* Cards Container with Grid */
.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  perspective: 1000px;
}

/* Individual Card Styles */
.philosophy-card {
  position: relative;
  height: 420px;
  border-radius: 1rem;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.03);
}

/* Hover Effects */
.philosophy-card:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Card Image with Zoom Effect */
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.philosophy-card:hover .card-image {
  transform: scale(1.15);
}

/* Overlay with Gradient */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0) 100%);
  color: white;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateZ(1px);
}

.philosophy-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0,71,107,0.95) 0%, rgba(0,71,107,0.8) 60%, rgba(0,71,107,0) 100%);
}

/* Card Title with Animation */
.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.philosophy-card:hover .card-title {
  opacity: 1;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #00A8E8;
  transition: width 0.4s ease;
}

.philosophy-card:hover .card-title::after {
  width: 60px;
}

/* Card Content with Typography */
.card-content {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.philosophy-card:hover .card-content {
  opacity: 1;
}

/* Values List Styling */
.values-list {
  list-style: none;
}

.values-list li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.philosophy-card:hover .values-list li {
  opacity: 1;
  transform: translateX(5px);
}

.values-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00A8E8;
  font-weight: bold;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .philosophy-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .philosophy-card {
    height: 380px;
  }
  
  .philosophy-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .philosophy-section {
    padding: 4rem 0;
  }
  
  .philosophy-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .philosophy-card {
    height: 340px;
  }
  
  .philosophy-header {
    margin-bottom: 3rem;
  }
  
  .philosophy-header h2 {
    font-size: 1.75rem;
  }
  
  .philosophy-header p {
    font-size: 1rem;
  }
  
  .card-overlay {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .card-content {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .philosophy-container {
    padding: 0 1rem;
  }
  
  .philosophy-header h2 {
    font-size: 1.5rem;
  }
  
  .philosophy-card {
    height: 320px;
  }
}