/*
Theme Name: MinimalGreen
*/

/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

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

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

.main-container {
    display: flex;
    max-width: 90%;
    margin: 0 auto;
    gap: 3rem;
    padding: 2rem 0;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 1rem 0;
}

.header-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
    text-align: center;
}

.logo {
    width: 240px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #00aa18;
}

.main-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
}

.site-main {
    flex: 1;
}

.recent-posts-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00aa18;
    color: #333;
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.recent-post-thumbnail {
    flex-shrink: 0;
}

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

.recent-post-title a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: color 0.3s;
}

.recent-post-title a:hover {
    color: #00aa18;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

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

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

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

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.post-card-title a:hover {
    color: #00aa18;
}

.post-card-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.read-more-btn {
    display: inline-block;
    background: #00aa18;
    color: #fff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s;
}

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

.single-post {
    max-width: 100%;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

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

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.site-footer {
    background: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 90%;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    width: 180px;
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-nav a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #00aa18;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
    color: #666;
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .main-sidebar {
        position: static;
        flex: none;
        width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .logo {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .main-container {
        max-width: 95%;
    }
    
    .logo {
        width: 160px;
    }
    
    .post-thumbnail img {
        height: 250px;
    }
}



.post-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #2d3748;
  margin: 0 auto;
}

.post-content p {
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content h2,
.post-content h3 {
  color: #1a202c;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 2rem;
}

.post-content h2 {
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #edf2f7;
}

.post-content h3 {
  font-size: 1.375rem;
  margin-top: 2rem;
  color: #2d3748;
}


.post-content ul,
.post-content ol {
  margin: 1.25rem 0;
  padding-left: 1.75rem;
}

.post-content ul {
  list-style: none;
}

.post-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #718096;
  font-size: 1.4rem;
  line-height: 1;
  top: 0.1rem;
}

.post-content ol {
  counter-reset: item;
  list-style: none;
}

.post-content ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  counter-increment: item;
}

.post-content ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: #718096;
  font-weight: 500;
  font-size: 0.95rem;
}

.post-content li {
  color: #4a5568;
  line-height: 1.6;
}

.post-content li > p {
  margin: 0;
  display: inline;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-content table th,
.post-content table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #edf2f7;
}

.post-content table th {
  background: #f7fafc;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.post-content table tr:last-child td {
  border-bottom: none;
}

.post-content table tr:hover {
  background: #fafafa;
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #4299e1;
  background: #f8fafc;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #4a5568;
}

.post-content blockquote p {
  margin: 0;
}


@media (max-width: 768px) {
  .post-content {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .post-content h2 {
    font-size: 1.5rem;
  }
  
  .post-content h3 {
    font-size: 1.25rem;
  }
  
  .post-content table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
  }
  
  .post-content table th,
  .post-content table td {
    padding: 0.875rem 1rem;
  }
}


html {
  scroll-behavior: smooth;
}

		.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 2rem 0 3rem;
}

.site-branding .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit; /* Или укажите нужный цвет, например: #333 */
    white-space: nowrap;
    gap: 10px; /* Расстояние между иконкой и текстом */
}

.site-branding .logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-branding .site-title {
    font-size: 1.5rem; /* Настройте размер шрифта по необходимости */
    font-weight: 600;
}