/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Mar 13 2026 | 10:47:22 */
/* ============================================================
   wa-certificates-library — 4-column gallery
   Organic blob borders, no backgrounds anywhere
   ============================================================ */

/* Strip all backgrounds from every wrapper layer */
.wa-certificates-library,
.wa-certificates-library .wpb_wrapper,
.wa-certificates-library .wpb_gallery_slides,
.wa-certificates-library .wpb_image_grid {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Override WPBakery absolute grid → CSS Grid, 4 columns */
.wa-certificates-library .wpb_image_grid_ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 60px 40px !important;
    position: static !important;
    height: auto !important;
    list-style: none;
    margin: 0;
    padding: 20px !important;
}

.wa-certificates-library .isotope-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
}

/* ── CERTIFICATE CARD ──────────────────────────────────────
   Organic blob shape via percentage border-radius.
   Thin soft stroke only — no heavy frames.
   ─────────────────────────────────────────────────────────── */
.wa-certificates-library .isotope-item a {
    display: block;
    position: relative;
    overflow: hidden;

    /* Smaller organic blob radius */
    border-radius: 38% 28% 35% 30% / 30% 35% 28% 38%;

    /* Thin elegant stroke — white gap + thin dark ring */
    box-shadow:
        0 0 0 1.5px rgba(114, 47, 47, 0.5),
        0 0 0 4px   rgba(255, 255, 255, 0.75),
        0 0 0 5.5px rgba(114, 47, 47, 0.10),
        0 6px 24px  rgba(0, 0, 0, 0.09);

    transition:
        transform     0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow    0.45s ease,
        border-radius 0.45s ease;

    background: transparent !important;
    text-decoration: none;
    cursor: pointer;
}

/* Force square thumbnail */
.wa-certificates-library .isotope-item a {
    aspect-ratio: 1 / 1;
}

/* Grayscale image — fills the square */
.wa-certificates-library .isotope-item a img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%) contrast(1.06) brightness(0.97);
    transition: filter 0.45s ease;
    border-radius: inherit;
    background: transparent !important;
}

/* No veil by default — transparent */
.wa-certificates-library .isotope-item a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    border-radius: inherit;
    transition: background 0.4s ease;
}

/* PDF icon — grey, centered */
.wa-certificates-library .isotope-item a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Ccircle cx='36' cy='36' r='34' fill='rgba(255,255,255,0.80)'/%3E%3Cpath d='M22 16h18l10 10v30H22V16z' fill='%23aaa'/%3E%3Cpath d='M40 16l10 10H40V16z' fill='%23ccc'/%3E%3Crect x='28' y='34' width='16' height='2.5' rx='1.2' fill='white'/%3E%3Crect x='28' y='40' width='16' height='2.5' rx='1.2' fill='white'/%3E%3Crect x='28' y='28' width='10' height='2.5' rx='1.2' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.16));
    transition:
        background-image 0.3s ease,
        transform        0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity          0.3s ease;
}

/* ── HOVER ─────────────────────────────────────────────────── */

.wa-certificates-library .isotope-item a:hover {
    transform: scale(1.05);
    border-radius: 30% 38% 28% 35% / 35% 28% 38% 30%;
    box-shadow:
        0 0 0 1.5px rgba(114, 47, 47, 0.75),
        0 0 0 4px   rgba(255, 255, 255, 0.9),
        0 0 0 5.5px rgba(114, 47, 47, 0.28),
        0 12px 36px rgba(114, 47, 47, 0.15);
}

.wa-certificates-library .isotope-item a:hover img {
    filter: grayscale(0%) contrast(1.04) brightness(1);
}

.wa-certificates-library .isotope-item a:hover::before {
    background: rgba(0, 0, 0, 0.02);
}

.wa-certificates-library .isotope-item a:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Ccircle cx='36' cy='36' r='34' fill='rgba(255,255,255,0.92)'/%3E%3Cpath d='M22 16h18l10 10v30H22V16z' fill='%23722f2f'/%3E%3Cpath d='M40 16l10 10H40V16z' fill='%23a04040'/%3E%3Crect x='28' y='34' width='16' height='2.5' rx='1.2' fill='white'/%3E%3Crect x='28' y='40' width='16' height='2.5' rx='1.2' fill='white'/%3E%3Crect x='28' y='28' width='10' height='2.5' rx='1.2' fill='white'/%3E%3C/svg%3E");
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 1;
    filter: drop-shadow(0 3px 8px rgba(114, 47, 47, 0.35));
}

/* ── TABLET — 2 columns ─────────────────────────────────────── */
@media (max-width: 900px) {
    .wa-certificates-library .wpb_image_grid_ul {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 50px 32px !important;
    }
}

/* ── MOBILE — 2 columns, tighter ───────────────────────────── */
@media (max-width: 480px) {
    .wa-certificates-library .wpb_image_grid_ul {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px 16px !important;
        padding: 10px !important;
    }

    .wa-certificates-library .isotope-item a::after {
        width: 36px;
        height: 36px;
    }
}
