* {
    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;
}

a {
    text-decoration: none;
    color: #2c5aa0;
    transition: color 0.3s;
}

a:hover {
    color: #f15a24;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2c5aa0;
}

.logo span {
    color: #f15a24;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    font-weight: 500;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-login {
    background-color: transparent;
    border: 1px solid #2c5aa0;
    color: #2c5aa0;
}

.btn-register {
    background-color: #2c5aa0;
    border: 1px solid #2c5aa0;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.hero {
    background: linear-gradient(135deg, #2c5aa0, #1e3a6b);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: #f15a24;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
}

.main-content {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.forum-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

.forum-categories {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.section-title {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #2c5aa0;
}

.category-list {
    padding: 0;
}

.category-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.category-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #2c5aa0;
    font-weight: 600;
}

.category-info {
    flex: 1;
}

.category-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.category-desc {
    font-size: 14px;
    color: #6c757d;
}

.category-stats {
    text-align: right;
    font-size: 14px;
    color: #6c757d;
}

.thread-count {
    display: block;
    font-weight: 600;
    color: #2c5aa0;
}

.recent-threads {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.thread-list {
    padding: 0;
}

.thread-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.thread-item:hover {
    background-color: #f8f9fa;
}

.thread-item:last-child {
    border-bottom: none;
}

.thread-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c5aa0;
    font-weight: 600;
}

.thread-content {
    flex: 1;
}

.thread-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.thread-meta {
    font-size: 14px;
    color: #6c757d;
}

.thread-stats {
    text-align: right;
    font-size: 14px;
    color: #6c757d;
}

.thread-views, .thread-replies {
    display: block;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.widget-title {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #2c5aa0;
}

.widget-content {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #2c5aa0;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

.online-users {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c5aa0;
    font-weight: 600;
}

.btn-new-thread {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #f15a24;
    color: white;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-new-thread:hover {
    background-color: #e04a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #f15a24;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }
}
