/**
 * Custom Styles for Protectys Blog
 * @version 5.4.1 (Blurred Meta Backgrounds)
 */

/* Main Layout, Grid, etc. (No changes) */
#blog-main-layout { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin: 40px; }
#blog-left-sidebar-widget, #blog-right-sidebar-widget { flex: 0 0 300px; position: -webkit-sticky; position: sticky; top: 120px; }
#blog-posts-grid { flex: 1 1 auto; min-width: 0; }
#blog-posts-grid .posts-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* ==========================================================================
   3. Blog Post Card Styling (UPDATED)
   ========================================================================== */
.blog-post-card { background: #fff; border-radius: 20px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; overflow: hidden; }
.card-image-container { position: relative; overflow: hidden; }
.card-featured-image { width: 100%; height: 240px; object-fit: cover; transition: transform .4s ease; }
a.card-overlay-icon, a.card-overlay-icon i { color: #f0b945 !important; }
.card-overlay-icon { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.45); display: flex; justify-content: center; align-items: center; font-size: 2.5em; opacity: 0; transition: opacity .3s ease; z-index: 2; }
.card-category-tag { position: absolute; top: 15px; left: 15px; background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); color: #fff; padding: 6px 12px; border-radius: 20px; font-size: .8em; font-weight: 500; z-index: 3; }

/* --- NEW: Meta Info on Image Styling --- */
.card-meta-on-image {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line on small cards */
    gap: 8px; /* Space between items */
    z-index: 3;
    background: none; /* Remove the old gradient background */
}
.card-meta-on-image .card-meta-item {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black background */
    -webkit-backdrop-filter: blur(8px); /* Frosted glass effect for Safari */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    padding: 5px 10px;
    border-radius: 20px; /* Same radius as the category tag */
    color: #ffffff;
    font-size: 0.75em; /* Slightly smaller for a cleaner look */
}
.card-meta-on-image .card-meta-item i {
    color: #f0b945; /* Bright Yellow icons */
    margin-right: 6px;
    font-size: 1em;
}

/* Card Content Styling */
.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; text-align: center; }
.card-title { font-size: 1.5em; text-align: center; margin: 0 0 15px; font-weight: 700; }
.card-title a { text-decoration: none; color: #0d2d5e; transition: color .3s ease; }
.card-excerpt { font-size: .95em; line-height: 1.6; color: #666; text-align: center; flex-grow: 1; margin-bottom: 25px; }
.card-read-more-btn { display: inline-block; background: #106240 !important; color: #ffffff; padding: 12px 25px; border-radius: 8px; text-align: center; text-decoration: none; font-weight: 600; transition: background-color .3s ease, color .3s ease; }
.card-read-more-btn i { margin-left: 8px; }

/* Hover Effects & Other Styles (No changes) */
.blog-post-card:hover { transform: translateY(-12px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
.blog-post-card:hover .card-featured-image { transform: scale(1.1); }
.blog-post-card:hover .card-title a { color: #c82828; }
.blog-post-card:hover .card-overlay-icon { opacity: 1; }
.card-read-more-btn:hover { background-color: #f0b945; color: #000000; }
.loading-spinner { text-align: center; padding: 40px; }
#infinite-scroll-end-message { background-color: #FFFFFF; border-radius: 15px; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07); text-align: center; margin-top: 60px; padding: 40px 30px; border-top: none; }
#infinite-scroll-end-message .end-message-icon { font-size: 3em; color: #c82828; margin-bottom: 20px; display: inline-block; }
#infinite-scroll-end-message h3 { font-size: 2em; color: #0d2d5e; margin-bottom: 15px; font-weight: 700; }
#infinite-scroll-end-message p { font-size: 1.1em; line-height: 1.6; margin: 0 auto; max-width: 500px; }
#infinite-scroll-end-message .total-posts-count { font-weight: bold; color: #0d2d5e; }
@media (max-width: 1024px) { #blog-main-layout { margin: 20px; } #blog-left-sidebar-widget, #blog-right-sidebar-widget { display: none; } #blog-posts-grid .posts-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { #blog-main-layout { margin: 20px 15px; } #blog-posts-grid .posts-container { grid-template-columns: 1fr; } }