/* Certifications Page Specific Styles */

/* Header */
.certifications-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=1200&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    padding: 6rem 0;
}

/* Section Title */
.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--bs-primary);
}

/* Certification Cards */
.certification-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.certification-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    height: 80px;
}

.certification-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.certification-content {
    flex: 1;
}

.certification-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certification-issuer {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.certification-date {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.certification-skills {
    margin-bottom: 1rem;
}

.certification-skills .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Certificate Image in Modal */
.certificate-img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Skills Section */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    font-weight: 600;
}

.skill-percentage {
    font-weight: 600;
    color: var(--bs-primary);
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: #e9ecef;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    font-size: 1.2rem;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-panel {
    width: calc(50% - 40px);
    float: left;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-panel::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -15px;
    border-top: 15px solid transparent;
    border-left: 15px solid #fff;
    border-bottom: 15px solid transparent;
}

.timeline-item:nth-child(even) .timeline-panel {
    float: right;
}

.timeline-item:nth-child(even) .timeline-panel::after {
    left: -15px;
    border-left: 0;
    border-right: 15px solid #fff;
}

.timeline-heading {
    margin-bottom: 15px;
}

.timeline-heading h3 {
    margin-bottom: 0.5rem;
    color: #212529;
}

.timeline-date, .timeline-institution {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Learning Cards */
.learning-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.learning-list {
    list-style: none;
    padding-left: 0;
}

.learning-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.learning-list li:last-child {
    margin-bottom: 0;
}

.learning-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--bs-primary);
    border-radius: 50%;
}

.learning-item h4 {
    margin-bottom: 0.5rem;
    color: #212529;
}

.learning-item p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-badge {
        left: 40px;
    }
    
    .timeline-panel {
        width: calc(100% - 90px);
        float: right;
    }
    
    .timeline-panel::after {
        left: -15px;
        border-left: 0;
        border-right: 15px solid #fff;
    }
    
    .certifications-header {
        padding: 4rem 0;
    }
}

@media (max-width: 767.98px) {
    .certification-card {
        padding: 1.5rem;
    }
    
    .certification-logo {
        height: 60px;
    }
    
    .learning-card {
        margin-bottom: 1.5rem;
    }
}
