﻿
.cert-section {
    --cert-green: #004225;
    --cert-mint: #eef6f0;
    --cert-border: #e0e0e0;
    background: var(--cert-mint);
    border-radius: 24px;
    padding: 2.75rem 1.5rem 3rem;
    text-wrap: nowrap;
}

.cert-heading {
    color: var(--cert-green);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 0.65rem;
}

.cert-intro {
    color: #555;
    font-size: 1.5rem;
    line-height: 1.45;
    margin: 0 0 2rem;
    max-width: 48rem;
}

.cert-slider {
    position: relative;
}

.cert-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

    .cert-track::-webkit-scrollbar {
        display: none;
    }

.cert-card {
    flex: 0 0 calc((100% - 4rem) / 5);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--cert-border);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 66, 37, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .cert-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 66, 37, 0.1);
    }

@media (max-width: 1199.98px) {
    .cert-card {
        flex-basis: calc((100% - 2rem) / 3);
    }
}

@media (max-width: 767.98px) {
    .cert-card {
        flex-basis: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 575.98px) {
    .cert-card {
        flex-basis: 85%;
    }
}

.cert-card-img,
.cert-card-img-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #dceee3;
}

.cert-card-img-placeholder {
    border-bottom: 1px dashed #b7d4c2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a8f78;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cert-card-body {
    padding: 1.15rem 1.1rem 1.35rem;
}

.cert-card-title {
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.45rem;
}

.cert-card-sub {
    color: #555;
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 0;
}

.cert-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--cert-green);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

    .cert-nav.is-visible {
        display: flex;
    }

    .cert-nav.prev {
        left: -8px;
    }

    .cert-nav.next {
        right: -8px;
    }

    .cert-nav:hover {
        background: var(--cert-green);
        color: #fff;
    }

