/* Featured Posts Widget Styles */
.featured-posts-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    margin: 20px 0;
}

.featured-posts-container {
    background-color: #ffffff;
    border-radius: 12px;
    position: relative;
}

.featured-posts-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.featured-post-main {
    flex: 1;
    min-width: 0;
}

.featured-posts-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.featured-post-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.featured-post-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.featured-post-content {
    padding: 0;
}

/* Category Badge Styles */
.post-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #007cba, #00a0d2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    transition: all 0.3s ease;
}

.post-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.featured-post-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.featured-post-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-post-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-post-bullets li {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.featured-post-bullets li:before {
    content: "▶";
    color: #007cba;
    position: absolute;
    left: 0;
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.featured-post-bullets li:hover:before {
    transform: translateX(3px);
}

/* Post Meta Footer */
.post-meta-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.post-read-time {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-read-time i {
    color: #007cba;
}

.featured-post-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.featured-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-item-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.post-item-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}

.post-item-description {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.post-read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #007cba;
    border: 1px solid #007cba;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-read-more:hover {
    background-color: #007cba;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.3);
}

.post-read-more:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .post-category-badge,
    .featured-post-bullets li:before,
    .post-read-more {
        transition: none !important;
    }
}

/* Focus visible for better keyboard navigation */
.post-read-more:focus-visible {
    outline: 3px solid #007cba;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-posts-widget {
        padding: 10px;
    }

    .featured-posts-container {
        padding: 20px;
    }

    .featured-posts-layout {
        flex-direction: column;
        gap: 20px;
    }

    .featured-post-main,
    .featured-posts-sidebar {
        flex: 1;
        min-width: 100%;
    }

    .featured-post-title {
        font-size: 20px;
    }

    .post-item-title {
        font-size: 16px;
    }

    .featured-post-image img {
        height: 200px;
    }

    .post-meta-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .featured-posts-container {
        padding: 15px;
    }

    .featured-post-title {
        font-size: 18px;
    }

    .post-item-title {
        font-size: 15px;
    }

    .featured-post-description,
    .post-item-description {
        font-size: 14px;
    }
}
