/* Training Section Styles */
.training-section {
    position: relative;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 25%);
}

.training-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(243, 244, 246, 0.8) 0%, rgba(243, 244, 246, 0) 100%);
    z-index: 1;
}

.training-section .relative.z-10 {
    z-index: 2;
}

/* Training Card Styles */
.training-card {
    aspect-ratio: 210/297;
    perspective: 1500px;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.training-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.training-card .pdf-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.training-card:hover .pdf-preview-container {
    transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.2),
        0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.training-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.training-card:hover img {
    transform: scale(1.05);
}

/* Enhanced training card styling */
.training-card .relative {
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.training-card:hover .relative {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Add a subtle border to training cards */
.training-card .relative::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* Training Overlay Styles */
.training-overlay {
    z-index: 20;
    transition: opacity 0.3s ease;
}

/* Training Actions Styles */
.training-actions {
    position: relative;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

/* Training Button Styles */
.training-btn {
    position: relative;
    flex: 1 1 auto;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    user-select: none;
    z-index: 30;
    white-space: nowrap;
    font-size: 0.95rem;
}

.training-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.training-btn.view {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.training-btn.download {
    background-color: #3B82F6;
    color: white;
    border: none;
}

.training-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.training-btn.view:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.training-btn.download:hover {
    background-color: #2563EB;
}

/* Add a subtle glow effect to download button */
.training-btn.download::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.5), transparent 70%);
    border-radius: 0.6rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.training-btn.download:hover::after {
    opacity: 1;
}

/* Ensure the container doesn't block clicks */
.pdf-preview-container {
    pointer-events: none;
}

/* Allow clicks on the buttons */
.training-actions a {
    pointer-events: auto;
}

/* Text Animation */
.training-card h3, 
.training-card p {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.training-card:hover h3, 
.training-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

.training-card:hover h3 {
    transition-delay: 0.1s;
}

.training-card:hover p {
    transition-delay: 0.2s;
}

/* Responsive Adjustments for Training Buttons */
@media (max-width: 768px) {
    .training-section::before {
        height: 100px;
    }
    
    .training-actions {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
    }
    
    .training-btn {
        flex: 0 0 calc(50% - 0.25rem);
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .training-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, 
            rgba(0, 0, 0, 0.9) 0%, 
            rgba(0, 0, 0, 0.5) 50%, 
            transparent 100%) !important;
    }
    
    .training-card h3, 
    .training-card p {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
} 