/* Main Content Sections */
.category-cards .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.category-cards .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}

.category-cards .card img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.recent-news {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--secondary-color);
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 0 8px 8px 0;
    transition: background-color 0.2s;
    color: var(--text-color);
}

.news-item:hover {
    background-color: #e8e8f0;
    text-decoration: none;
}

.news-item.pinned {
    background-color: #e6e8f5; /* A light blue/purple tint */
    border-left: 3px solid var(--primary-color);
}

.news-item.pinned:hover {
    background-color: #dde0f0;
}

.pin-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    vertical-align: text-bottom;
    color: var(--primary-color);
}

.news-item-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.news-item-content h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.news-item-date {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-bottom: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
}

.pagination button:hover {
    background-color: var(--secondary-color);
    color: white;
}

.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    background-color: var(--background-color);
    color: #999;
    cursor: not-allowed;
    border-color: #eee;
}

.event-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.event-card h3 {
    color: white;
    font-family: var(--font-body);
    font-weight: bold;
}

.btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}
.btn:hover {
    background-color: var(--background-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-item-img {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 576px) {

     .category-cards .cards-grid {
        grid-template-columns: repeat(2, 1fr);
     }
}