:root {
    --drone-blue: #8bbcdc;
    --robot-gold: #ddb537;
    --dark-bg: #2c3e50;
    --light-bg: #f8f9fa;
    --border-color: #e1e5eb;
    --text-dark: #333;
    --text-light: #666;
    --success: #28a745;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

body {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fc 100%);
    color: var(--text-dark);
}

/* Шапка */
.forum-header {
    background: var(--dark-bg);
    color: white;
    padding: 15px 0;
    border-bottom: 4px solid var(--primary-drone);
}

/* Шапка */
.header {
    background: var(--dark-bg);
    color: white;
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* НАВИГАЦИЯ */
.navbar {
    background: var(--dark-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 179, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--drone-blue), var(--robot-gold));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Основной контент */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Герой блога */
.blog-hero {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-drone {
    color: var(--drone-blue);
}

.stat-robot {
    color: var(--robot-gold);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Основная сетка */
.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Категории */
.categories-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--dark-bg);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--drone-blue), var(--robot-gold));
    border-radius: 3px;
}

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

.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--drone-blue);
    box-shadow: 0 15px 30px rgba(139, 188, 220, 0.15);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.icon-drone {
    background: rgba(139, 188, 220, 0.1);
    color: var(--drone-blue);
}

.icon-robot {
    background: rgba(221, 181, 55, 0.1);
    color: var(--robot-gold);
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.category-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Популярные статьи */
.popular-articles {
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.article-image {
    height: 180px;
    background: linear-gradient(135deg, var(--drone-blue), var(--robot-gold));
    position: relative;
    overflow: hidden;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-drone {
    color: var(--drone-blue);
}

.category-robot {
    color: var(--robot-gold);
}

.article-content {
    padding: 25px;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-bg);
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Теги */
.tags-cloud {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.tags-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--drone-blue);
    color: white;
}

/* Последние комментарии */
.recent-comments {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-author {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.comment-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-meta {
    font-size: 0.8rem;
    color: #999;
}

/* Подписка */
.newsletter {
    background: linear-gradient(135deg, var(--drone-blue), var(--robot-gold));
    border-radius: 12px;
    padding: 30px;
    color: white;
    text-align: center;
    margin-top: 30px;
}

.newsletter-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.newsletter-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 10px 0 0 10px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    padding: 10px 18px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover, .page-link.active {
    background: var(--drone-blue);
    color: white;
    border-color: var(--drone-blue);
}

.bottom-block {
  position: absolute;
  bottom: 0; /* Aligns the bottom edge of the block with the bottom edge of the container */
  left: 0; /* Ensures it starts at the left edge */
}

/* Футер */
footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

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

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

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: var(--light-bg);
}

.footer-column a, .footer-column div {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column a:hover {
    color: var(--light-bg);
}

/* Адаптивность */
@media (max-width: 600px) {
    .categories-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 912px) {
    .sidebar-widget-top {
        margin-top: 85px;
    }
}
