:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8fafc;
    --accent: #8e6f4a; /* Professional Blue */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.certificates-page {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

/* Hero Section */
.cert-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
}

.cert-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.cert-hero p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Grid Section */
.cert-grid-section {
    padding: 40px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Certificate Card */
.cert-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cert-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #fdfdfd;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.cert-card:hover .cert-img-container img {
    transform: scale(1.03);
}

.cert-info {
    padding: 24px;
    text-align: center;
    background: var(--card-bg);
}

.cert-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
    line-height: 1.4;
}

/* Footer Note */
.cert-footer-note {
    margin-top: 60px;
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
}

.cert-footer-note p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-in > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-in.active > * {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stagger-in.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-in.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-in.active > *:nth-child(3) { transition-delay: 0.3s; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .cert-hero {
        padding: 30px 10px 20px;
    }
    
    .cert-hero h1 {
        font-size: 1.4rem; /* Further reduced */
        line-height: 1.2;
        margin-bottom: 12px;
        padding: 0 5px;
    }

    .cert-hero p {
        font-size: 0.9rem; /* Smaller description */
        line-height: 1.4;
        padding: 0 5px;
        text-align: justify; /* Justified text */
    }

    
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
        margin-top: 20px;
    }
    
    .cert-img-container {
        aspect-ratio: 1/1.1; /* More compact aspect ratio */
        padding: 8px;
    }

    .cert-info {
        padding: 12px;
    }

    .cert-info h3 {
        font-size: 0.9rem;
    }

    .cert-footer-note {
        margin-top: 30px;
        padding: 12px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .cert-footer-note p {
        font-size: 0.8rem;
        text-align: justify; /* Justified text */
    }

}


