/* Product Patent Page Styles */

/* Product Patent Section */
.product-patent-section {
    background-color: #ffffff;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Sidebar - Patent Category */
.patent-sidebar {
    background-color: #ffffff;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 3px solid #0066FF;
}

.patent-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.patent-category-item {
    margin-bottom: 5px;
}

.patent-category-item.active .patent-category-link {
    background-color: #0066FF;
    color: #ffffff;
}

.patent-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.patent-category-link:hover {
    background-color: #f5f5f5;
    color: #0066FF;
    text-decoration: none;
}

.patent-category-item.active .patent-category-link:hover {
    background-color: #0066FF;
    color: #ffffff;
}

.patent-category-link i {
    font-size: 12px;
}

/* Patent Grid */
.patent-grid {
    margin-bottom: 40px;
}

.patent-card {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.patent-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
    box-shadow:  0 4px 12px rgba(0, 0, 0, 0.12);
}

.patent-image-wrapper {
    position: relative;
    background-color: #e8f4fc;
    overflow: hidden;
    aspect-ratio: 3/4;
    padding: 15px;
}


.patent-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Certificate Mockup - Image Display */
.certificate-mockup {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #f5f5f5;
}

.certificate-mockup:hover {
    transform: scale(1.02);
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.certificate-mockup:hover .certificate-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.image-overlay i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
}

.certificate-mockup:hover .image-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.certificate-mockup:hover .image-overlay i {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
    cursor: default;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #fff;
    text-decoration: none;
}

.patent-info {
    text-align: center;
    padding: 15px 10px;
}

.patent-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.patent-date {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-item .page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    padding: 0;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background-color: #0066FF;
    border-color: #0066FF;
    color: #fff;
}

.page-item .page-link:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #0066FF;
}

.page-item.active .page-link:hover {
    background-color: #0066FF;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .patent-sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .patent-card {
        margin-bottom: 20px;
    }
    
    .patent-image-wrapper {
        padding: 10px;
    }
    
    
    .sidebar-title {
        font-size: 15px;
    }
    
    .patent-category-link {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .patent-grid .col-sm-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .patent-info {
        padding: 10px 5px;
    }
    
    .patent-name {
        font-size: 13px;
    }
    
    .patent-date {
        font-size: 11px;
    }
}
