/* Import the same font as main styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Add these styles at the top of your file */
:root {
    --header-height: 4rem;
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    padding-top: var(--header-height);
}

.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Certificate section styles */
.certificates-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
    min-height: 100vh;
    background: #fff;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.certificate-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.certificate-image {
    position: relative;
    padding-top: 56.25%;
    background: linear-gradient(45deg, #f8fafc, #f1f5f9);
}

.certificate-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.certificate-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.certificate-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.certificate-issuer,
.certificate-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.certificate-issuer i,
.certificate-date i {
    width: 1.25rem;
    height: 1.25rem;
    color: #3b82f6;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation */
.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .certificate-content {
        padding: 1.25rem;
    }

    .certificate-title {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Add to your existing styles */
.modal-open {
    overflow: hidden;
}

#certificate-modal {
    backdrop-filter: blur(4px);
}

.modal-content {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#certificate-modal.flex .modal-content {
    opacity: 1;
    transform: scale(1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav button styles */
.nav-button {
    position: relative;
    padding: 0.5rem 1rem;
    color: #4B5563;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #3B82F6, #2563EB);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-button:hover {
    color: #1F2937;
}

.nav-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Group hover for icon */
.group:hover i {
    transform: translateX(4px);
}

/* Remove old verify button styles */
.verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4B5563;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    color: #1F2937;
}

.verify-btn i {
    transition: transform 0.3s ease;
} 