/* =========================================================
   PATENTS PAGE
========================================================= */

.patents-hero {
    text-align: center;
}

.patents-hero .container {
    max-width: 850px;
}

.patent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 44px;
}

.patent-card {
    overflow: hidden;
    padding: 0 0 24px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.patent-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37,99,235,.24);
    box-shadow: 0 18px 42px rgba(15,23,42,.09);
}

.patent-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
}

.patent-badge {
    display: inline-flex;
    margin: 22px 22px 10px;
    padding: 7px 12px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.patent-card h3 {
    margin: 0 22px 10px;
    color: #0f172a;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.patent-card p {
    margin: 0 22px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 94%;
    max-height: 90vh;
    border-radius: 8px;
    background: #ffffff;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {
    .patent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .patent-grid {
        grid-template-columns: 1fr;
    }

    .patent-card img {
        height: 200px;
    }

    .lightbox-close {
        top: 16px;
        right: 20px;
        font-size: 34px;
    }
}
