/* Enhanced Core Values & Vision Section Styles - Mimicking Solutions Section */
.core-values-enhanced {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.core-values-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 71, 107, 0.05) 0%, transparent 50%);
    z-index: 0;
}

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

.core-values-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.core-values-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;
}

.core-values-header p {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 768px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Core Values Grid - 4 cards per row */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    perspective: 1000px;
    align-items: stretch;
}

/* Individual Core Value Card */
.core-value-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.core-value-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: #00476B;
}

/* Card Image Container */
.core-value-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.core-value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.core-value-card:hover .core-value-image img {
    transform: scale(1.1);
}

/* Image Overlay */
.core-value-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.core-value-card:hover .core-value-image::after {
    opacity: 1;
}

/* Card Badge */
.core-value-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #00476b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 71, 107, 0.3);
}

/* Card Content */
.core-value-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.core-value-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.core-value-card:hover .core-value-title {
    color: #00476b;
}

.core-value-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

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

.values-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.core-value-card:hover .values-list li {
    transform: translateX(3px);
    color: #374151;
}

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

/* Learn More Link */
.core-value-link {
    display: inline-flex;
    align-items: center;
    color: #00476b;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin-top: auto;
}

.core-value-link:hover {
    color: #003366;
    transform: translateX(3px);
}

.core-value-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.core-value-link:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .core-value-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .core-values-enhanced {
        padding: 4rem 0;
    }
    
    .core-values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .core-values-header h2 {
        font-size: 2rem;
    }
    
    .core-values-header p {
        font-size: 1rem;
    }
    
    .core-value-image {
        height: 200px;
    }
    
    .core-value-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .core-values-container {
        padding: 0 1rem;
    }
    
    .core-values-header h2 {
        font-size: 1.75rem;
    }
    
    .core-value-image {
        height: 180px;
    }
}

/* Animation for card entrance */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.core-value-card {
    animation: cardEntrance 0.6s ease-out;
}

.core-value-card:nth-child(2) {
    animation-delay: 0.1s;
}

.core-value-card:nth-child(3) {
    animation-delay: 0.2s;
}

.core-value-card:nth-child(4) {
    animation-delay: 0.3s;
}