/* Certification Page Styles (scoped to .cert-page .cert-section to avoid conflicts) */
.cert-page * {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Certification Section (minimal to avoid header/footer conflicts) */
.cert-page .cert-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.cert-page .cert-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cert-page .section-title {
    margin-bottom: 40px;
    text-align: center;
}

.cert-page .section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2B3990;
    margin-bottom: 10px;
}

.cert-page .section-title p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.cert-page .cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.cert-page .cert-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 280px;
    max-width: 360px;
}

.cert-page .cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-page .cert-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.cert-page .cert-content {
    padding: 15px;
    text-align: center;
}

.cert-page .cert-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2B3990;
    margin-bottom: 8px;
}

.cert-page .cert-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Enhanced Single Certification Text */
.single-certification-text {
    background: linear-gradient(145deg, #ffffff, #f1f7f9); /* Subtle gradient for depth */
    padding: 20px 15px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* Soft shadow for depth */
}

.single-certification-text h4 {
    font-size: 20px; /* Slightly larger for emphasis */
    font-weight: 700; /* Bolder for visibility */
    color: #2B3990; /* Matches your theme's dark blue */
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.single-certification-text h4 a {
    text-decoration: none;
    color: inherit;
}

.single-certification-text p {
    font-size: 14px;
    color: #555; /* Slightly darker for readability */
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Add a subtle CTA button */
.single-certification-text::after {
    content: "Learn More";
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: #1bb4b9; /* Matches template's sea-green */
    padding: 6px 12px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Hover Effects */
.single-certification-item:hover .single-certification-text {
    background: linear-gradient(145deg, #f1f7f9, #e8f0f2); /* Slightly darker gradient on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.single-certification-item:hover .single-certification-text h4 {
    color: #1bb4b9; /* Sea-green on hover for emphasis */
}

.single-certification-item:hover .single-certification-text p {
    opacity: 1;
}

.single-certification-item:hover .single-certification-text::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Slide up on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cert-page .cert-section {
        padding: 40px 0;
    }

    .cert-page .section-title h2 {
        font-size: 28px;
    }

    .cert-page .section-title p {
        font-size: 14px;
    }

    .cert-page .cert-item {
        min-width: 100%;
        max-width: 100%;
    }

    .single-certification-text {
        padding: 15px 10px;
    }

    .single-certification-text h4 {
        font-size: 18px;
    }

    .single-certification-text p {
        font-size: 13px;
    }

    .single-certification-text::after {
        font-size: 11px;
        padding: 5px 10px;
    }
}