/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Sep 01 2025 | 13:16:15 */
/* Reset and base styles */
.jp-relatedposts-i2 {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    font-family: Inter;
}

.jp-relatedposts-i2 .wp-block-heading {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #1a202c;
    position: relative;
}

.jp-relatedposts-i2 .wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

/* Grid Layout */
.jp-related-posts-i2__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Post Card Design */
.jp-related-posts-i2__post {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.jp-related-posts-i2__post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.jp-related-posts-i2__post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.jp-related-posts-i2__post:hover::before {
    opacity: 1;
}

/* Post Link and Image */
.jp-related-posts-i2__post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

.jp-related-posts-i2__post-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.jp-related-posts-i2__post:hover .jp-related-posts-i2__post-img {
    transform: scale(1.05);
}

/* Hide the original title text in the link */
.jp-related-posts-i2__post-link {
    font-size: 0 !important;
    line-height: 0;
	margin-bottom: 0;
}

/* Create title overlay from the link text */
.jp-related-posts-i2__post-link::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 8rem 1.5rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.jp-related-posts-i2__post:hover .jp-related-posts-i2__post-link::after {
    transform: translateY(0);
}

/* Post Metadata */
.jp-related-posts-i2__post-defs {
    padding: 1.5rem;
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-size: 0.875rem;
    color: #4a5568;
}

.jp-related-posts-i2__post-defs dt {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jp-related-posts-i2__post-defs dt::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #667eea;
}

.jp-related-posts-i2__post-defs dd {
    margin: 0;
    font-weight: 500;
}

/* Author and Date Styling */
.jp-related-posts-i2__post-author {
    display: none;
}

.jp-related-posts-i2__post-date {
    display: none;
}

/* Category Link Styling */
.jp-related-posts-i2__post-context a {
    border: 1px solid var(--border-color);
    padding: 2px 10px;
    margin: 0 2px;
    border-radius: var(--border-radius-lg);
    font-size: var(--small-font-size);
    transition: background-color 0.2s ease, border-color 0.2s ease;
	color: var(--wp--preset--color--secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .jp-relatedposts-i2 {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .jp-related-posts-i2__list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .wp-block-heading {
        font-size: 1.875rem;
        margin-bottom: 2rem;
    }

    .jp-related-posts-i2__post-img {
        height: 200px;
    }

    .jp-related-posts-i2__post-defs {
        padding: 1.25rem;
        gap: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .jp-related-posts-i2__list {
        grid-template-columns: 1fr;
    }
    
    .jp-related-posts-i2__post-defs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .jp-related-posts-i2__post-defs dt {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* Animation for page load */
.jp-related-posts-i2__post {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.jp-related-posts-i2__post:nth-child(1) {
    animation-delay: 0.1s;
}

.jp-related-posts-i2__post:nth-child(2) {
    animation-delay: 0.2s;
}

.jp-related-posts-i2__post:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.jp-related-posts-i2__post-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.jp-related-posts-i2__post-context a:focus {
    outline: 2px solid #764ba2;
    outline-offset: 2px;
}