/* Certificate Details Page Styles */
/* Remove underlines from specific elements */
.certificate-details h1,
.certificate-details h2,
.certificate-details h3,
.certificate-details p,
.certificate-details li,
.certificate-details .meta-item,
.certificate-details .certificate-section {
    text-decoration: none !important;
}

.certificate-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 4rem 0 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.certificate-header .back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.certificate-header .back-button:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.certificate-header h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    font-weight: 700;
}

.certificate-header .issuer {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.certificate-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.meta-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.25rem;
}

.meta-item h3 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.meta-item p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

.certificate-section {
    margin-bottom: 2.5rem;
}

.certificate-section h2 {
    color: #2c3e50;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f1f1;
    font-size: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    background: #e9f5ff;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-highlight h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.project-highlight p {
    line-height: 1.7;
    color: #4a5568;
    margin: 0 0 1.5rem;
}

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

.learning-outcomes li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #4a5568;
}

.learning-outcomes li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.course-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.course-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.course-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.course-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.certificate-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .certificate-header h1 {
        font-size: 2rem;
    }
    
    .certificate-meta {
        grid-template-columns: 1fr;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
    
    .certificate-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Print styles */
@media print {
    .certificate-header .back-button,
    .certificate-actions {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .certificate-header {
        background: none;
        color: #000;
        padding: 1rem 0;
    }
    
    .certificate-section h2 {
        page-break-after: avoid;
    }
    
    .certificate-section {
        page-break-inside: avoid;
    }
}
