* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
    color: #4CAF50;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav a:hover {
    color: #4CAF50;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn-login {
    color: white;
    border: 1px solid white;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-register {
    background-color: #4CAF50;
    color: white;
}

.btn-register:hover {
    background-color: #3d8b40;
}

/* Breadcrumb */
.breadcrumb {
    background-color: white;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #777;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #21759b 0%, #1a5f7a 100%);
    color: white;
    padding: 40px 0;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Category Content */
.category-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Sidebar */
.sidebar {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 12px;
}

.sidebar ul li a {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #4CAF50;
}

.tag-count {
    background-color: #f0f0f0;
    color: #777;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.btn-sidebar {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #f0f7f0;
    color: #4CAF50;
    border: 1px solid #4CAF50;
    padding: 12px;
    margin-top: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-sidebar:hover {
    background-color: #4CAF50;
    color: white;
}

/* Questions Section */
.questions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.questions-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
}

.sort-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
}

.ask-question-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ask-question-btn:hover {
    background-color: #3d8b40;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.question-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.question-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
}

.question-title:hover {
    color: #4CAF50;
    text-decoration: underline;
}

.question-meta {
    display: flex;
    gap: 15px;
    color: #777;
    font-size: 0.9rem;
}

.question-excerpt {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.question-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.tag {
    background-color: #e9f5e9;
    color: #4CAF50;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tag-wordpress {
    background-color: #21759b;
    color: white;
}

.question-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: #777;
    font-size: 0.9rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.answered {
    background-color: #4CAF50;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.unanswered {
    background-color: #f44336;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.pagination a {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f5f5f5;
    border-color: #4CAF50;
}

.pagination .active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination .disabled {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

/* Related Categories */
.related-categories {
    margin-top: 60px;
}

.related-categories h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

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

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.category-card p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.category-stats-small {
    font-size: 0.85rem;
    color: #4CAF50;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #4CAF50;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #4CAF50;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #3a5068;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .category-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .questions-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .sort-options {
        width: 100%;
        justify-content: space-between;
    }

    .question-header {
        flex-direction: column;
        gap: 10px;
    }
}