/* Modern Weblog/News Page Design */

/* Weblog Container */
.weblog-container {
    padding: 3rem 0;
}

/* Filter Section */
.filter-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: #f8f9fa;
    color: #555;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: #17a2b8;
    color: #ffffff;
    border-color: #17a2b8;
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.search-btn {
    padding: 0.8rem 2rem;
    background: #17a2b8;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #138496;
    transform: translateY(-2px);
}

/* Container Wrapper */
.weblog-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.news-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-category {
    background: #e8f8fa;
    color: #17a2b8;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #17a2b8;
}

.news-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #17a2b8;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    gap: 0.8rem;
    color: #138496;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Featured Post */
.featured-news {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #17a2b8;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .news-meta {
    margin-bottom: 1.5rem;
}

.featured-content .news-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.featured-content .news-excerpt {
    font-size: 1.1rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    margin-bottom: 2rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #ffffff;
    color: #555;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination li a:hover,
.pagination li.active a {
    background: #17a2b8;
    color: #ffffff;
    border-color: #17a2b8;
    transform: translateY(-2px);
}

/* Sidebar */
.sidebar-widget {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #17a2b8;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.recent-post-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recent-post-info h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-info h5 a:hover {
    color: #17a2b8;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #888;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .weblog-container {
        padding: 3rem 2rem;
    }
}

@media (max-width: 992px) {
    .featured-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .featured-content .news-title {
        font-size: 1.6rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .weblog-header h1 {
        font-size: 2rem;
    }
    
    .weblog-container {
        padding: 2rem 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .weblog-header {
        padding: 2rem 0;
    }
    
    .weblog-container {
        padding: 2rem 1rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-content .news-title {
        font-size: 1.4rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .news-grid {
        gap: 1.5rem;
    }
}
