/* Blog Card Styles */
.rn-blog {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rn-blog:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.rn-blog .inner {
    background: var(--background-color-1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rn-blog:hover .inner {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.rn-blog .thumbnail {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    min-height: 220px !important;
    background: #f8f9fa;
}

.rn-blog .thumbnail img {
    transition: transform 0.4s ease;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: 100% !important;
    min-width: 100% !important;
    max-height: 220px !important;
    min-height: 220px !important;
}

.rn-blog:hover .thumbnail img {
    transform: scale(1.1);
}

.rn-blog .thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 1, 79, 0.8), rgba(209, 20, 20, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rn-blog:hover .thumbnail::after {
    opacity: 0.3;
}

.rn-blog .content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 120px;
}

.rn-blog .title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rn-blog .meta {
    font-size: 14px;
    color: var(--color-body);
    margin-top: auto;
    flex-shrink: 0;
}

.rn-blog .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rn-blog .meta i {
    width: 16px;
    height: 16px;
}

.rn-blog .title a {
    color: var(--color-heading);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    word-wrap: break-word;
}

.rn-blog .title a:hover {
    color: var(--color-primary);
}

.rn-blog .title a i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.rn-blog:hover .title a i {
    transform: translateX(5px) translateY(-5px);
}

/* Ensure equal height cards */
.rn-blog-area .row {
    display: flex;
    flex-wrap: wrap;
}

.rn-blog-area .row > div {
    display: flex;
    margin-bottom: 30px;
}

.rn-blog-area .row > div > .rn-blog {
    width: 100%;
}

/* Force all images to be exactly the same size */
.rn-blog .thumbnail img,
.rn-blog .thumbnail a img {
    width: 100% !important;
    height: 220px !important;
    max-width: 100% !important;
    min-width: 100% !important;
    max-height: 220px !important;
    min-height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Override any other CSS that might affect image sizes */
.rn-blog .thumbnail img[src*="blog"],
.rn-blog .thumbnail a img[src*="blog"] {
    width: 100% !important;
    height: 220px !important;
    max-width: 100% !important;
    min-width: 100% !important;
    max-height: 220px !important;
    min-height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .rn-blog .content {
        padding: 20px;
        min-height: 100px;
    }
    
    .rn-blog .title {
        font-size: 16px;
        -webkit-line-clamp: 2;
    }
    
    .rn-blog .thumbnail {
        height: 180px !important;
        max-height: 180px !important;
        min-height: 180px !important;
    }
    
    .rn-blog .thumbnail img {
        height: 180px !important;
        max-height: 180px !important;
        min-height: 180px !important;
    }
}

@media only screen and (max-width: 575px) {
    .rn-blog .title {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
    
    .rn-blog .content {
        padding: 15px;
    }
    
    .rn-blog .thumbnail {
        height: 160px !important;
        max-height: 160px !important;
        min-height: 160px !important;
    }
    
    .rn-blog .thumbnail img {
        height: 160px !important;
        max-height: 160px !important;
        min-height: 160px !important;
    }
} 