/*
Theme Name: Blue
Description: Стильный блог с адаптивным дизайном
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    text-align: center;
}

.logo {
    max-width: 200px;
    height: auto;
}

.logo-link {
    text-decoration: none;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 30px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Post Cards */
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #00569f;
}

.post-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    background: #00569f;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #004080;
}

/* Single Post */
.single-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.single-post-content {
    padding: 30px;
}

.single-post-title {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 700;
}


/* Sidebar */
.sidebar-widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00569f;
    color: #333;
    font-weight: 600;
}

.recent-post {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.recent-post-thumbnail {
    flex-shrink: 0;
    margin-right: 15px;
}

.recent-post-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-title {
    font-size: 0.9em;
    font-weight: 500;
}

.recent-post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: #00569f;
}

/* Category Title */
.category-title {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    font-weight: 700;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

/* Footer */
.site-footer {
    background: #f8f9fa;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .main-container {
        width: 95%;
    }
    
    .single-post-thumbnail img {
        height: 300px;
    }
    
    .single-post-content {
        padding: 20px;
    }
    
    .single-post-title {
        font-size: 1.5em;
    }
    
    .post-content-scroll {
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 150px;
    }
    
    .post-thumbnail img {
        height: 150px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .recent-post {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recent-post-thumbnail {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

ul, ol {
  margin: 0 0 1.5em 0;
  padding-left: 2em;
}

/* Стили для маркированного списка */
ul {
  list-style: none;
}

ul li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 1.2em;
}

ul li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: #00569f;
  font-size: 1.1em;
}

/* Стили для нумерованного списка */
ol {
  list-style: none;
  counter-reset: custom-counter;
}

ol li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 2em;
  counter-increment: custom-counter;
}

ol li::before {
  content: counter(custom-counter) ".";
  position: absolute;
  left: 0;
  color: #00569f;
  font-weight: 600;
  min-width: 1.5em;
}

/* Альтернативный вариант с иконками */
ul.custom-icons li::before {
  content: "→";
  font-weight: 400;
}

/* Компактный вариант для вложенных списков */
ul ul, ol ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

ul ul li::before {
  content: "•";
  font-size: 1.2em;
}