a {
    color: var(--primary-black);
    font-weight: 900;
}

.stages-section {
    padding: 50px 20px;
    margin: 0 auto;
    width: 75%;
}

.stages-section h2 {
    text-align: center;
    margin: 7vh;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.2s ease-out forwards;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.stage {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.stage:nth-child(even) {
    justify-content: flex-end;
}

.stage-content {
    display: flex;
    justify-content: center;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    color: var(--primary-black);
    border-left: 5px solid var(--primary-blue);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 1.1rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.stage:nth-child(1) .stage-content { animation-delay: 0.2s; }
.stage:nth-child(2) .stage-content { animation-delay: 0.4s; }
.stage:nth-child(3) .stage-content { animation-delay: 0.6s; }
.stage:nth-child(4) .stage-content { animation-delay: 0.8s; }

.stage-content p {
    width: 100%;
    text-align: left;
    padding: 1vh 1vw;
}

.stage:nth-child(even) .stage-content {
    border-left: none;
    border-right: 5px solid var(--primary-blue);
}

.stage:nth-child(even) .stage-content p {
    text-align: right;
}

.stage-content h3 {
    margin-top: 0 var(--primary-blue);
    color: var(--primary-blue);
}

section > p {
    text-align: center;
    font-size: 1.2rem;
    line-height: 5vh;
}

.certificate-section {
    padding: 60px 20px;
    background: var(--bg-card); /* Używa Twojego koloru karty */
}

.cert-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.cert-image {
    flex: 0 0 250px;
    text-align: center;
}

.cert-image img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.cert-image img:hover {
    transform: scale(2.5); /* Powiększenie o 15% */
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.2)); /* Mocniejszy cień przy powiększeniu */
}

.cert-text {
    flex: 1;
}

.cert-text h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.cert-text p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .stage-content {
        width: 100%;
        text-align: left !important;
        border-right: none !important;
        border-left: 5px solid var(--primary-blue) !important;
    }
    .cert-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .cert-image {
        flex: 0 0 auto;
        max-width: 200px;
    }
}