/* News Section Styles */
.article-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card .card-img-top {
    height: 240px;
    object-fit: cover;
}

.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.article-meta i {
    width: 16px;
    text-align: center;
    margin-right: 4px;
    color: var(--primary-color);
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(138, 43, 226, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.featured-article {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.featured-article img {
    height: 400px;
    object-fit: cover;
}

.featured-article .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
}

.featured-article .title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.featured-article .meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.featured-article .meta i {
    width: 16px;
    text-align: center;
    margin-right: 4px;
}

/* Sidebar Styles */
.sidebar-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.sidebar-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.tag-cloud a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    margin: 0.25rem;
    background-color: rgba(147, 51, 234, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box .form-control {
    padding-right: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.search-box .btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0 8px 8px 0;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .col-lg-4 {
        display: flex;
        flex-direction: column;
    }

    .sidebar-search {
        order: -1;
        margin-bottom: 1rem;
    }

    .filter-toggle {
        order: 0;
    }

    .sidebar-filters {
        display: none;
        transition: all 0.3s ease;
    }

    .sidebar-filters.show {
        display: block;
    }

    .filter-toggle.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
}
