/* Certification Process Styles */

/* Parallax background for the certification section */
#certification {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('../assets/Image by Hans Benn from Pixabay.jpg');
    color: var(--dark-color);
}

/* Overlay for readability */
#certification::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(316deg, rgba(0, 120, 241, 0.9) 0%, rgba(0, 25, 41, 0.95) 100%);
    z-index: 0;
}

/* Position the content above the overlay */
#certification .section-content {
    position: relative;
    z-index: 1;
    color: white;
}

/* Update text colors for dark background */
#certification .section-title {
    color: white;
}
#certification .step-container p {
    color:black;
}
#certification .section-title::after {
    background: white;
}

/* Image attribution caption */
.image-attribution {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    z-index: 1;
}

.certification-process {
    max-width: 900px;
    margin: 3rem auto;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: block;
}

.process-step {
    display: flex;
    margin-bottom: 2.5rem;
    opacity: 0;
    transition: all 0.5s ease;
}

.process-step-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.process-step-icon i {
    font-style: normal;
}

.process-step.visible {
    opacity: 1;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: absolute;
    top: -20px;
    left: -15px;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.step-container h3 {
    margin: 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    padding-left: 1.5rem;
}

.step-container p {
    color: #000000; /* Explicitly set to black */
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
    padding-left: 1.5rem;
}

/* Certification Visuals */
.certification-visuals {
    margin-top: 4rem;
}

.visuals-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.cert-doc {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background: white;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.cert-doc:hover {
    transform: translateY(-10px);
}

.cert-doc h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.cert-image {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-sm);
}

/* Added connection lines between process steps */
@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 30px; /* Centers line with step number */
        top: 40px; /* Starting below the step number */
        bottom: -60px; /* Extend down to next step */
        width: 2px;
        background: linear-gradient(to bottom, var(--accent-color) 50%, transparent 50%);
        background-size: 10px 20px;
        z-index: 0;
    }
}

@media (max-width: 767px) {
    .process-step {
        flex-direction: column;
        align-items: center;
    }
    
    .process-step-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .step-container {
        padding-top: 2rem;
    }
    
    .step-number {
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .step-container h3,
    .step-container p {
        padding-left: 0;
        text-align: center;
    }
}
