/**
 * Latest Posts Display Plugin Styles
 * Pixel-perfect design matching the provided image
 */

.lpd-latest-posts-container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 40px;
    font-family: 'Poppins', Roboto, sans-serif;
    width: 100%;
    box-sizing: border-box;
    background-color: #14202F;
    min-height: 600px;
}

.lpd-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 40%;
    max-width: 40%;
}

.lpd-right-column {
    display: flex;
    flex-direction: column;
    flex: 0 0 60%;
    max-width: 60%;
}

.lpd-post-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;

    width: 100%;
    /* box-sizing: border-box; */
}


.lpd-post-card-small {
    flex: 0 0 auto;
    flex-direction: row;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    gap: 20px;
    padding: 0;
}

.lpd-post-card-small:hover {
    transform: none;
    box-shadow: none;
}

.lpd-post-card-large {
    flex: 1;
    height: 100%;
    /* background-color: #0F2C3D; */
    border-radius: 12px;
    overflow: hidden;

}

.lpd-post-thumbnail {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 12px 12px;
    flex-shrink: 0;
}

.lpd-post-card-large .lpd-post-thumbnail {
    border-radius: 12px 12px 12px 12px;
}

.lpd-post-card-small .lpd-post-thumbnail {
    width: 200px;
    height: 150px;
    border-radius: 12px;
    flex-shrink: 0;
}

.lpd-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
}

.lpd-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lpd-post-card-large .lpd-post-thumbnail img {
    border-radius: 12px 12px 0 0;
}

.lpd-post-card:hover .lpd-post-thumbnail img {
    transform: scale(1.05);
}

.lpd-news-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #0F2C3D;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lpd-post-card-large .lpd-news-tag {
    background-color: #0F2C3D;
}

.lpd-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #ffffff; */
    font-size: 48px;
    font-weight: bold;
    min-height: 200px;
}

.lpd-post-card-small .lpd-placeholder-image {
    min-height: 150px;
}

.lpd-post-content {
    flex: 1;
    padding: 20px;
    padding-left: 0px !important;
    /* display: flex;
    flex-direction: column; */
    /* background-color: #ffffff; */
}

.lpd-post-card-small .lpd-post-content {
    padding: 0;
    background-color: transparent;
    flex: 1;
    justify-content: center;
}

.lpd-post-card-large .lpd-post-content {
    padding: 24px;
    /* background-color: #0F2C3D; */
}

.lpd-post-date {
    font-size: 14px;
    color: #8a8a8a;
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.lpd-post-card-small .lpd-post-date {
    color: #ffffff;
    margin-bottom: 8px;
}

.lpd-post-card-large .lpd-post-date {
    color: #ffffff;
    margin-bottom: 12px;
}

.lpd-post-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1a1a;
    flex: 1;
}

.lpd-post-card-small .lpd-post-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #ffffff;
}

.lpd-post-card-large .lpd-post-title {
    font-size: 22px;
    line-height: 1.4;
    color: #ffffff;
}

.lpd-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.lpd-post-card-small .lpd-post-title a {
    color: #ffffff;
}

.lpd-post-card-large .lpd-post-title a {
    color: #ffffff;
}

.lpd-post-title a:hover {
    color: #094358;
}

.lpd-post-card-small .lpd-post-title a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.lpd-post-card-large .lpd-post-title a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.lpd-know-more {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #3FA5B8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-top: auto;
    width: fit-content;
}

.lpd-post-card-small .lpd-know-more {
    color: #3FA5B8;
    margin-top: 0;
}

.lpd-post-card-large .lpd-know-more {
    color: #3FA5B8;
}

.lpd-know-more:hover {
    color: #2d7a8a;
}

.lpd-post-card-small .lpd-know-more:hover {
    color: #3FA5B8;
    opacity: 0.8;
}

.lpd-post-card-large .lpd-know-more:hover {
    color: #3FA5B8;
    opacity: 0.8;
}

.lpd-post-thumbnail {
    height: auto;
}

.lpd-post-card-large .lpd-post-thumbnail {
    height: 320px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .lpd-latest-posts-container {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .lpd-left-column,
    .lpd-right-column {
        flex: 1;
        max-width: 100%;
    }
    
    .lpd-post-card-large .lpd-post-thumbnail {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .lpd-latest-posts-container {
        padding: 20px 16px;
        gap: 16px;
    }
    
    .lpd-left-column {
        gap: 16px;
    }
    
    .lpd-post-card-small {
        flex-direction: column;
        gap: 12px;
    }
    
    .lpd-post-card-small .lpd-post-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .lpd-post-card-small .lpd-post-content {
        padding: 0;
    }
    
    .lpd-post-card-large .lpd-post-thumbnail {
        height: 240px;
    }
    
    .lpd-post-content {
        padding: 16px;
    }
    
    .lpd-post-card-large .lpd-post-content {
        padding: 20px;
    }
    
    .lpd-post-title {
        font-size: 16px;
    }
    
    .lpd-post-card-small .lpd-post-title {
        font-size: 15px;
    }
    
    .lpd-post-card-large .lpd-post-title {
        font-size: 18px;
    }
    
    .lpd-post-date {
        font-size: 13px;
    }
    
    .lpd-know-more {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lpd-latest-posts-container {
        padding: 16px 12px;
    }
    
    .lpd-post-card-small .lpd-post-thumbnail {
        height: 180px;
    }
    
    .lpd-post-card-large .lpd-post-thumbnail {
        height: 200px;
    }
    
    .lpd-post-title {
        font-size: 15px;
    }
    
    .lpd-post-card-small .lpd-post-title {
        font-size: 14px;
    }
    
    .lpd-post-card-large .lpd-post-title {
        font-size: 17px;
    }
    
    .lpd-news-tag {
        font-size: 11px;
        padding: 5px 12px;
        top: 10px;
        right: 10px;
    }
}
