/* --- Certificate Page Base Styles --- */
.bg-light-section {
    background-color: #f4f8fc;
}

/* Banner Styling */
.cert-banner {
    background: #0288d1; /* Logo blue color */
    color: #ffffff;
}

.cert-main-heading {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.cert-sub-heading {
    font-family: 'Times New Roman', Times, serif;
    font-size: 17px;
    font-style: italic;
    opacity: 0.95;
}

.cert-divider {
    width: 60px;
    height: 3px;
    background-color: #ffd54f; /* Yellow accent line */
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Card Outer Link - No text underline & No Blink/Flicker */
.cert-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
}

/* Card Box */
.cert-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cert-card:hover {
    border-color: #0288d1;
    box-shadow: 0 6px 18px rgba(2, 136, 209, 0.18);
}

/* Thumbnail Box */
.cert-img-box {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.cert-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Red PDF Badge */
.pdf-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53935;
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Card Info */
.cert-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cert-info h5 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cert-info p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Blue View PDF Button */
.open-btn {
    display: inline-block;
    font-family: 'Times New Roman', Times, serif;
    background-color: #0288d1;
    color: #ffffff !important;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.cert-card:hover .open-btn {
    background-color: #01579b;
}

/* Responsive Grid adjustments */
@media (max-width: 768px) {
    .cert-main-heading {
        font-size: 25px;
    }
    .cert-img-box {
        height: 190px;
    }
}