/* Topics Page Styles */

/* Hero Section Hidden - replaced by cleaner design below */
.page-hero,
.page-hero::before,
.page-title,
.page-subtitle {
    display: none;
}

.topic-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.topic-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.topic-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    background: rgba(214, 51, 132, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
}

.topic-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.4;
}

.topic-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.topic-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.pagination-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.pagination-wrapper::-webkit-scrollbar {
    height: 4px;
}

.pagination-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pagination-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.pagination {
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

/* Pagination Styling matching Blogs Page */
.page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 5px;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(214, 51, 132, 0.25);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-link:hover {
    background-color: rgba(214, 51, 132, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Mobile Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 10px;
    }
    
    .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        margin: 0 2px;
    }
    
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        padding: 0.375rem 0.5rem;
        width: auto;
        min-width: 36px;
        font-size: 0.85rem;
    }
    
    .pagination .page-item {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .pagination-wrapper {
        padding: 5px 0;
    }
    
    .pagination {
        gap: 3px;
        padding: 0 5px;
        justify-content: flex-start;
        min-width: max-content;
    }
    
    .page-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        margin: 0 1px;
    }
    
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        padding: 0.25rem 0.4rem;
        min-width: 32px;
        font-size: 0.75rem;
    }
}

/* Filter Button Styling */
.filter-btn {
    border: 1px solid #e9ecef;
    color: #6c757d;
    background-color: white;
    font-weight: 500;
    transition: all 0.2s;
    padding: 8px 25px;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(214, 51, 132, 0.3);
}

/* Topics Page Background */
.topics-page {
    background-color: #f8f9fa;
}

/* Page Description */
.page-description {
    max-width: 600px;
}
