* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 2.5rem;
    color: #d35400;
    margin-bottom: 10px;
}

.main-header p {
    font-size: 1.1rem;
    color: #e67e22;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

@media (max-width: 900px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

.cert-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-thumbnail {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #e17055;
    margin-bottom: 15px;
}

.cert-placeholder {
    width: 100%;
    max-width: 300px;
    height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 3px solid #e17055;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #999;
    margin: 0 auto 15px;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
}

.download-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.cert-count {
    text-align: center;
    padding: 30px;
    font-size: 1rem;
    color: #d35400;
}

.no-certs {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 500px;
}

.no-certs h3 {
    color: #d35400;
    margin-bottom: 10px;
}

.no-certs p {
    color: #666;
}

.no-certs code {
    background: #ffecd2;
    padding: 2px 8px;
    border-radius: 4px;
    color: #d35400;
}

.cert-image-wrapper {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.cert-image-wrapper:hover .expand-icon {
    opacity: 1;
}

.expand-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    height: 90%;
    border: none;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
