/**
 * Public CSS – WP Blogs Plugin
 * Clean, scalable, and theme-safe
 */
 /**
 * Plugin Name: WP Blogs
 * Version: 1.0.0
 */

/* ===============================
   1. PLUGIN ISOLATION
================================ */
.wp-blogs-container *,
.wp-blogs-container *::before,
.wp-blogs-container *::after {
    box-sizing: border-box;
}

.wp-blogs-container article {
    margin: 0;
    padding: 0;
    border: none;
}

.wp-blogs-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wp-blogs-container a {
    text-decoration: none;
}


/* ===============================
   2. COMMON STRUCTURE
================================ */
.wp-blog-item {
    transition: 0.3s ease;
}

.wp-blog-content {
    flex: 1;
}

.wp-blog-title {
    font-size: 20px;
    margin-bottom: 6px;
}

.wp-blog-title a {
    color: #53a92c;
    transition: 0.3s ease;
}

.wp-blog-title a:hover {
    color: #92da71;
}


/* ===============================
   3. AUTHOR + DATE
================================ */
.wp-blog-author-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wp-blog-author-date .wp-author {
    font-weight: 500;
}

.wp-blog-author-date .wp-post-date {
    color: #999;
}


/* ===============================
   4. META BOX
================================ */
.wp-blog-meta-box {
    background: #c1eaae;
    border-left: 4px solid #53a92c;
    padding: 12px 20px;
    margin-bottom: 14px;
    border-radius: 6px;
    transition: 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}


.wp-event-datetime,
.wp-event-location {
    font-size: 14px;
    color: #444;
    margin-top: 4px;
}


/* ===============================
   5. EXPIRED EVENTS
================================ */
.wp-event-expired-badge {
    display: inline-block;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
}

.wp-blog-item.expired {
    opacity: 0.65;
    filter: grayscale(30%);
}


/* ===============================
   6. EXCERPT
================================ */
.wp-blog-excerpt {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.6;
}


/* ===============================
   7. BUTTON
================================ */
.wp-read-more {
    display: inline-block;
    background: #53a92c;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.3s ease;
    position: relative;
}

.wp-read-more:hover {
    background: #92da71;
}


/* ===============================
   8. LIST LAYOUT
================================ */
.layout-list .wp-blog-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.layout-list .wp-blog-list-wrap {
    display: flex;
    gap: 20px;
    width: 100%;
}

.layout-list .wp-blog-thumb {
    flex: 0 0 220px;
}

.layout-list .wp-blog-thumb img {
    border-radius: 8px;
}

.layout-list .wp-blog-item:hover .wp-blog-meta-box {
    background: #effaeb;
}


/* ===============================
   9. GRID LAYOUT
================================ */
.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.layout-grid .wp-blog-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.layout-grid .wp-blog-item:hover {
    transform: translateY(-5px);
}

/* GRID CONTENT PADDING */
.layout-grid .wp-blog-content {
    padding: 18px 20px 20px;
}

.layout-grid .wp-blog-item {
    transition: 0.3s ease;
}

.layout-grid .wp-blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
.layout-grid .wp-blog-meta-box {
    margin-bottom: 16px;
}

/* Consistent Images */
.wp-blog-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.wp-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wp-blog-title a {
    color: #53a92c;
    text-decoration: none !important;
    transition: 0.3s ease;
}

.wp-blog-title a:hover {
    color: #92da71;
    text-decoration: none !important;
}

.wp-blog-item.expired .wp-blog-meta-box {
    border-left-color: #ff4d4f;
    background: #fff5f5;
}

.wp-expired-text {
    color: #ff4d4f;
    font-weight: 600;
}

/* ===============================
   10. CARD LAYOUT
================================ */
.layout-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.layout-card .wp-blog-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.layout-card .wp-blog-item:hover {
    transform: translateY(-6px);
}

.layout-card .wp-blog-thumb {
    position: relative;
}

.layout-card .wp-event-expired-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.layout-card .wp-blog-content {
    padding: 18px;
}

.wp-event-wrapper {
    width: 100%;
    margin: 0 auto;
}
.wp-event-featured-image {
    width: 100%;
    height: 420px; /* uniform professional height */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.wp-event-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* key for professional cropping */
    object-position: center;
    display: block;
}
.wp-no-events {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.wp-no-events-inner {
    max-width: 500px;
    width: 100%;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.wp-no-events-inner h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.wp-no-events-inner p {
    color: #777;
}

/* Event content card */
.wp-event-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    line-height: 1.7;
}

/* Better paragraph spacing */
.wp-event-content p {
    margin-bottom: 18px;
}
/* Vacancy Meta Styling */
.wp-vacancy-item {
    padding: 6px 0;
    /* border-bottom: 1px solid #eee; */
    font-size: 14px;
}

.wp-vacancy-item:last-child {
    border-bottom: none;
}

.wp-vacancy-item strong {
    color: #0a5c36;
    min-width: 140px;
    display: inline-block;
}


/* ===============================
   11. SINGLE EVENT
================================ */
.wp-blogs-event-thumbnail {
    margin-bottom: 20px;
}

.wp-blogs-event-thumbnail img {
    border-radius: 6px;
}

.wp-blogs-event-title {
    margin-bottom: 15px;
}

.wp-blogs-event-meta {
    padding: 15px;
    margin-bottom: 25px;
    background: #c1eaae;
    border-left: 4px solid #53a92c;
}

.wp-event-item {
    margin-bottom: 6px;
}

.wp-read-more,
.wp-read-more:link,
.wp-read-more:visited,
.wp-read-more:hover,
.wp-read-more:focus,
.wp-read-more:active {
    text-decoration: none !important;
}

.wp-read-more {
    display: inline-block;
    background: #53a92c;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.3s ease;
}


/* ===============================
   12. RESPONSIVE
================================ */
@media (max-width: 768px) {
    .layout-list .wp-blog-item,
    .layout-list .wp-blog-list-wrap {
        flex-direction: column;
    }

    .layout-list .wp-blog-thumb {
        flex: 1;
    }
}
