/* Trainings Page Specific Styles */

.trainings-section {
    padding-top: 50px;
    padding-bottom: 100px;
    background-color: var(--dark-bg);
}

.trainings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.training-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.training-card .icon-container {
    background: none;
    margin: 0 auto 20px;
    font-size: 3rem;
    color: var(--primary-color);
    height: auto;
    width: auto;
}

.training-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.training-card p {
    color: #555;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 30px;
}

.card-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.training-card .btn {
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
}

.training-card .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.training-card .btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.training-card .btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.training-card .btn-primary:hover {
    background-color: #5f0a87;
    transform: translateY(-2px);
}


/* Make buttons full width on smaller cards if needed */

@media (max-width: 380px) {
    .card-buttons {
        flex-direction: column;
    }
}