/**
 * 2008-2026 Prestaworld
 *
 * NOTICE OF LICENSE
 *
 * The source code of this module is under a commercial license.
 * Each license is unique and can be installed and used on only one website.
 * Any reproduction or representation total or partial of the module, one or more of its components,
 * by any means whatsoever, without express permission from us is prohibited.
 *
 * DISCLAIMER
 *
 * Do not alter or add/update to this file if you wish to upgrade this module to newer
 * versions in the future.
 *
 * @author    prestaworld
 * @copyright 2008-2026 Prestaworld
 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 * International Registered Trademark & Property of prestaworld
 */
:root {
    --primary-color: #008060;
    --primary-hover: #006e52;
    --secondary-color: #f6f6f7;
    --text-dark: #202623;
    --text-muted: #6d7175;
    --border-color: #e1e3e5;
}
.btn-primary-forum {
    background: var(--primary-color);
    border: none;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: 6px;
}

.btn-primary-forum:hover {
    background: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-section {
    background: linear-gradient(135deg, #004d80 0%, #004c3f 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.search-box {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-box input {
    border: none;
    padding: 0.625rem;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon img, .category-icon i{
    font-size: 1.75rem;
    border-radius: 12px;
    height: 100%;
    width:100%;
    color: white;
}

.category-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.category-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #888;
}

.stats span i {
    font-size: 0.875rem;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .stats {
        gap: 1rem;
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.recent-discussions {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.discussion-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    cursor: pointer;
}

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

.discussion-item:hover {
    background: var(--secondary-color);
}

.discussion-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.discussion-avatar {
    width: 60px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.discussion-avatar i {
    scale: 1.6;
}

.discussion-main {
    flex: 1;
    min-width: 0;
}

.discussion-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.discussion-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.badge-custom {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.discussion-votes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.discussion-votes i {
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .recent-discussions {
        padding: 1.5rem;
    }

    .discussion-item {
        padding: 1rem;
    }

    .discussion-content {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .recent-discussions {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .discussion-content {
        flex-wrap: wrap;
    }

    .discussion-votes {
        margin-left: 56px;
    }
}
.topic-avatar-auto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.topic-category {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.page-btn:hover {
    background: var(--secondary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
