/* Blog Page Styles */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  background-color: #fff; /* Білий фон, як у custom-page */
}

.blog-posts {
  width: 65%;
}

.blog-post {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Легка тінь за замовчуванням */
  transition: box-shadow 0.3s ease; /* Тільки тінь анімується */
}

.blog-post:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Легка тінь при ховері */
}

.blog-post a {
  text-decoration: none;
  display: block;
  color: inherit;
}

.post-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  max-height: 200px;
}

.blog-post h2 {
  font-family: 'Inter', sans-serif;
  font-size: 24px; /* Як h3 у custom-page */
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.4;
}

.blog-post h2:hover {
  color: #0088c8; /* Акцентний колір при ховері */
}

.post-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  line-height: 1.8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.6em;
}

.blog-sidebar {
  width: 35%;
}

.sidebar-widget {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Легка тінь */
}

.sidebar-widget h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px; /* Як h4 у custom-page */
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 15px;
  line-height: 1.4;
}

.sidebar-widget p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  line-height: 1.8;
  margin: 0 0 10px;
}

.sidebar-widget a {
  color: #0088c8; /* Акцентний колір */
  text-decoration: none;
}

.sidebar-widget a:hover {
  text-decoration: underline;
}

.sidebar-widget iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

/* Single Post Styles */
.single-post-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0; /* Removed side padding, kept top/bottom */
  background-color: #fff;
}

.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 0; /* Removed all padding, will handle inside content */
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.single-post h1 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px;
  line-height: 1.3;
  /* Removed h1::after pseudo-element to eliminate the stripe */
}

.post-meta {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.post-meta span {
  margin-right: 10px;
}

.post-thumbnail {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px 12px 0 0; /* Adjusted for no padding */
  margin-bottom: 0;
  display: block;
}

.post-content {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
  margin: 0;
  padding: 40px; /* Moved padding inside post-content for content spacing */
}

.post-content p {
  margin: 0 0 24px;
}

.post-content a {
  color: #0088c8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-content a:hover {
  color: #005f8f;
  text-decoration: underline;
}

.post-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 40px 0 20px;
  line-height: 1.4;
}

.post-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 32px 0 16px;
  line-height: 1.4;
}

.post-content h4 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 28px 0 14px;
  line-height: 1.4;
}

.post-content ul,
.post-content ol {
  margin: 24px 0;
  padding-left: 32px;
}

.post-content ul li,
.post-content ol li {
  font-size: 18px;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
  margin-bottom: 12px;
}

.post-content ul li {
  list-style-type: disc;
}

.post-content ol li {
  list-style-type: decimal;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-content th,
.post-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  word-wrap: break-word;
}

.post-content th {
  font-weight: 600;
  color: #1a1a1a;
  background-color: #f8fafc;
}

.post-content td {
  font-weight: 400;
}

.post-content tr:last-child td {
  border-bottom: none;
}

.post-content tr:hover {
  background-color: #f8fafc;
}

.post-content .table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
}

.post-content table {
  min-width: 0;
  table-layout: auto;
}

.post-content blockquote {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-style: italic;
  color: #333;
  border-left: 4px solid #0088c8;
  padding: 16px 24px;
  margin: 32px 0;
  background-color: #f8fafc;
  border-radius: 8px;
}

.post-content blockquote p {
  margin: 0;
}

.custom-field {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  margin: 24px 0;
  padding: 16px;
  background-color: #f8fafc;
  border-radius: 8px;
}

.post-categories,
.post-tags {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  margin: 24px 0;
}

.post-categories strong,
.post-tags strong {
  font-weight: 600;
  color: #1a1a1a;
}

.post-categories a,
.post-tags a {
  color: #0088c8;
  text-decoration: none;
}

.post-categories a:hover,
.post-tags a:hover {
  text-decoration: underline;
}

.share-buttons {
  margin: 40px 0;
  padding: 20px 40px 0; /* Adjusted padding to match post-content */
  border-top: 1px solid #e0e0e0;
}

.share-buttons h4 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  margin-right: 12px;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.facebook {
  background-color: #3b5998;
}

.share-btn.facebook:hover {
  background-color: #2d4373;
}

.share-btn.twitter {
  background-color: #1da1f2;
}

.share-btn.twitter:hover {
  background-color: #1a91da;
}

.share-btn.linkedin {
  background-color: #0077b5;
}

.share-btn.linkedin:hover {
  background-color: #00669c;
}

/* Responsive Design for Single Post */
@media (max-width: 1024px) {
  .single-post-page {
    padding: 40px 0;
  }

  .single-post {
    max-width: 700px;
    padding: 0;
  }

  .post-content {
    padding: 30px;
  }

  .single-post h1 {
    font-size: 28px;
  }

  .post-content {
    font-size: 17px;
  }

  .post-content h2 {
    font-size: 24px;
  }

  .post-content h3 {
    font-size: 20px;
  }

  .post-content h4 {
    font-size: 18px;
  }

  .post-content table {
    font-size: 15px;
  }

  .post-content th,
  .post-content td {
    padding: 10px 14px;
  }

  .post-thumbnail {
    max-height: 400px;
  }

  .share-buttons {
    padding: 20px 30px 0;
  }
}

@media (max-width: 768px) {
  .single-post-page {
    padding: 30px 0;
  }

  .single-post {
    max-width: 100%;
    padding: 0;
  }

  .post-content {
    padding: 24px;
  }

  .single-post h1 {
    font-size: 24px;
    line-height: 1.4;
  }

  .post-meta {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .post-content {
    font-size: 16px;
    line-height: 1.7;
  }

  .post-content p {
    margin: 0 0 20px;
  }

  .post-content h2 {
    font-size: 22px;
    margin: 32px 0 16px;
  }

  .post-content h3 {
    font-size: 18px;
    margin: 28px 0 14px;
  }

  .post-content h4 {
    font-size: 16px;
    margin: 24px 0 12px;
  }

  .post-content ul,
  .post-content ol {
    padding-left: 24px;
    margin: 20px 0;
  }

  .post-content ul li,
  .post-content ol li {
    font-size: 16px;
    line-height: 1.7;
  }

  .post-content img {
    margin: 20px 0;
    border-radius: 8px;
  }

  .post-content table {
    font-size: 14px;
  }

  .post-content th,
  .post-content td {
    padding: 10px 12px;
  }

  .post-content .table-wrapper {
    margin: 20px 0;
    border-radius: 8px;
  }

  .post-content blockquote {
    font-size: 16px;
    padding: 12px 20px;
    margin: 24px 0;
  }

  .post-thumbnail {
    max-height: 350px;
    border-radius: 8px 8px 0 0;
  }

  .custom-field {
    font-size: 14px;
    padding: 12px;
    margin: 20px 0;
  }

  .post-categories,
  .post-tags {
    font-size: 14px;
    margin: 20px 0;
  }

  .share-buttons {
    padding: 20px 24px 0;
  }

  .share-btn {
    padding: 8px 16px;
    font-size: 12px;
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
  .single-post-page {
    padding: 20px 0;
  }

  .single-post {
    padding: 0;
  }

  .post-content {
    padding: 16px;
  }

  .single-post h1 {
    font-size: 20px;
    line-height: 1.5;
  }

  .post-meta {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .post-content {
    font-size: 15px;
    line-height: 1.6;
  }

  .post-content p {
    margin: 0 0 16px;
  }

  .post-content h2 {
    font-size: 20px;
    margin: 28px 0 14px;
  }

  .post-content h3 {
    font-size: 16px;
    margin: 24px 0 12px;
  }

  .post-content h4 {
    font-size: 15px;
    margin: 20px 0 10px;
  }

  .post-content ul,
  .post-content ol {
    padding-left: 20px;
    margin: 16px 0;
  }

  .post-content ul li,
  .post-content ol li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
  }

  .post-content img {
    margin: 16px 0;
    border-radius: 6px;
  }

  .post-content table {
    font-size: 13px;
  }

  .post-content th,
  .post-content td {
    padding: 8px 10px;
  }

  .post-content .table-wrapper {
    margin: 16px 0;
    border-radius: 6px;
  }

  .post-content blockquote {
    font-size: 15px;
    padding: 10px 16px;
    margin: 20px 0;
    border-radius: 6px;
  }

  .post-thumbnail {
    max-height: 250px;
    border-radius: 6px 6px 0 0;
  }

  .custom-field {
    font-size: 13px;
    padding: 10px;
    margin: 16px 0;
  }

  .post-categories,
  .post-tags {
    font-size: 13px;
    margin: 16px 0;
  }

  .share-buttons {
    padding: 16px;
    margin: 30px 0;
  }

  .share-buttons h4 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .share-btn {
    padding: 6px 12px;
    font-size: 11px;
    margin-right: 6px;
    margin-bottom: 8px;
  }
}
