/* =========================
   BLOG STYLES
   Stili per le pagine del blog
========================= */

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.blog-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    text-align: center;
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}

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

.blog-card-title {
    color: #002f5f;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

/* Blog Meta */
.blog-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-meta i {
    color: #2ecc71;
}

/* Blog Excerpt */
.blog-excerpt {
    color: #002f5f;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Read More Button */
.btn-read-more {
    background: #2ecc71;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    color: white;
}

/* Sidebar */
.sidebar-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.sidebar-card .card-header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    padding: 20px;
}

.sidebar-card .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-card .list-group-item:last-child {
    border-bottom: none;
}

/* Category Links */
.category-link {
    padding: 15px 20px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.category-link:hover {
    background: #f8f9fa;
    border-left-color: #2ecc71;
    padding-left: 25px;
}

/* No Posts Alert */
.no-posts-alert {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

/* Category Filter Buttons */
.btn-outline-success.active {
    color: #1b8246;
    font-weight: 600;
}

/* Related Posts Section */
.mt-5 {
    margin-top: 60px !important;
    text-align: center;
    color: #002f5f;
}

.col-md-4.mb-3 {
    margin-bottom: 30px !important;
    min-width: 55rem;
}

.related-post-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: left;
    padding: 5px 20px 5px 20px;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.related-post-card .card-title {
    color: #002f5f;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.related-post-card .card-title a {
    color: #002f5f;
    text-decoration: none;
    transition: color 0.3s;
}

.related-post-card .card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 5px;
    border: 1px solid #2ecc71;
    color: #2ecc71;
    font-weight: 500;
    font-size: 1.5rem;
    padding: 10px 20px;
    background: white;
}

.pagination .page-link:hover {
    background: #2ecc71;
    color: white;
}

.page-item {
    text-align: center;
    display: block;
}

.pagination .page-item.active .page-link {
    background: #2ecc71;
    color: white;
    border: 1px solid #2ecc71;
}