/* ========================================
   Professional Health & Safety Cards
   Modern Design with Clean Aesthetics
   ======================================== */

.health-safety-compliance {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* Override parent .services-one background for health safety section */
.services-one.health-safety-section {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
}

/* Additional override to ensure full-width background appears */
div.services-one.health-safety-section,
.services-one.health-safety-section,
.services-one.health-safety-section.section-gray-bg {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Override for health-safety-section-gray-bg to maintain background */
.services-one.health-safety-section-gray-bg {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
}

/* Ensure inner container has proper spacing but maintains background */
.services-one.health-safety-section > div {
    background: #ffffff !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Ensure container-fluid extends full width */
.services-one.health-safety-section .container-fluid {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Ensure inner container maintains proper width and centering */
.services-one.health-safety-section .container {
    background: #ffffff !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    text-align: center !important;
}

/* Center the experts header content */
.services-one.health-safety-section .experts-header {
    text-align: center !important;
    margin-bottom: 50px;
}

/* Center the section title and intro text */
.services-one.health-safety-section .health-safety-intro-text {
    text-align: center !important;
    max-width: 800px;
    margin: 20px auto 0 auto;
}

/* Ensure section title area has no background */
.services-one.health-safety-section .sec-title {
    background: transparent !important;
    background-color: transparent !important;
}

/* Remove any background patterns or colors */
.health-safety-compliance::before,
.health-safety-compliance::after {
    display: none;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    place-items: center;
}

.compliance-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: auto;
    min-height: 280px;
    text-align: center;
    width: 100%;
    max-width: 380px;
}

/* Remove inline border-left styles and use clean design */
.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: all 0.3s ease;
}

/* Professional color scheme for cards */
.compliance-card:nth-child(1)::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.compliance-card:nth-child(2)::before {
    background: linear-gradient(135deg, #06ffa5 0%, #0ab875 100%);
}

.compliance-card:nth-child(3)::before {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.compliance-card:nth-child(4)::before {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.compliance-card:nth-child(5)::before {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.compliance-card:nth-child(6)::before {
    background: linear-gradient(135deg, #96deda 0%, #50c9c3 100%);
}

.compliance-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

.compliance-card:hover::before {
    height: 6px;
}

.compliance-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease;
    color: #ffffff;
}

/* Icon background colors matching the top border */
.compliance-card:nth-child(1) .compliance-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.compliance-card:nth-child(2) .compliance-card-icon {
    background: linear-gradient(135deg, #06ffa5 0%, #0ab875 100%);
}

.compliance-card:nth-child(3) .compliance-card-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.compliance-card:nth-child(4) .compliance-card-icon {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.compliance-card:nth-child(5) .compliance-card-icon {
    background: linear-gradient(135deg, #a8e6cf 0%, #88c999 100%);
}

.compliance-card:nth-child(6) .compliance-card-icon {
    background: linear-gradient(135deg, #ffd3a5 0%, #fd9853 100%);
}

.compliance-card:hover .compliance-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.compliance-card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #1a202c;
    font-family: 'Exo', sans-serif;
    line-height: 1.3;
}

.compliance-card-text {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    font-family: 'Helvetica Neue Light', 'Inter', sans-serif;
    font-weight: 300;
    margin: 0;
}

/* Section header styling */
.health-safety-compliance .sec-title__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    text-align: center;
}

.health-safety-compliance .sec-title__tagline {
    text-align: center;
    margin-bottom: 24px;
}

.health-safety-compliance .sec-title__tagline .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.health-safety-compliance .sec-title__tagline .icon-box .icon-shield {
    color: white;
    font-size: 36px;
}

.health-safety-intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
    font-family: 'Helvetica Neue Light', 'Inter', sans-serif;
    font-weight: 300;
}

/* Responsive design */
@media (max-width: 768px) {
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }
    
    .compliance-card {
        padding: 32px 24px;
        min-height: auto;
    }
    
    .health-safety-compliance .sec-title__title {
        font-size: 2rem;
    }
    
    .compliance-card-title {
        font-size: 1.1rem;
    }
    
    .compliance-card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .health-safety-compliance {
        padding: 60px 0;
    }
    
    .compliance-card {
        padding: 24px 20px;
    }
    
    .compliance-card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 16px;
    }
}

/* Animation for cards when they come into view */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.compliance-card {
    animation: fadeInUp 0.6s ease forwards;
}

.compliance-card:nth-child(1) {
    animation-delay: 0.1s;
}

.compliance-card:nth-child(2) {
    animation-delay: 0.2s;
}

.compliance-card:nth-child(3) {
    animation-delay: 0.3s;
}

.compliance-card:nth-child(4) {
    animation-delay: 0.4s;
}

.compliance-card:nth-child(5) {
    animation-delay: 0.5s;
}

.compliance-card:nth-child(6) {
    animation-delay: 0.6s;
}