/* Blog Styles */
.blog-card {
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  background: #fff;
}

.blog-thumbnail {
  display: flex;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.blog-thumbnail:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: inherit;
}

.blog-thumbnail:hover .blog-info h3 {
  color: #007bff;
}

.blog-info {
  flex: 1;
  padding-right: 1.5rem;
}

.blog-info h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.blog-excerpt {
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.blog-image {
  width: 200px;
  height: 150px;
  overflow: hidden;
  border-radius: 4px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  display: none;
  padding: 2rem;
  background: #fff;
  border-top: 1px solid #eee;
}

.blog-content.expanded {
  display: block;
}

.blog-meta {
  margin: 1rem 0;
  color: #666;
  font-size: 0.9rem;
}

.blog-meta span {
  margin-right: 1rem;
}

.blog-body {
  line-height: 1.6;
}

.blog-body p {
  margin-bottom: 1rem;
}

/* Social Share Buttons */
.social-share {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.social-share h4 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.share-button:hover {
  opacity: 0.9;
  text-decoration: none;
  color: white;
}

.share-button i {
  margin-right: 0.5rem;
}

.facebook {
  background-color: #1877f2;
}

.linkedin {
  background-color: #0a66c2;
}

.twitter {
  background-color: #000000;
}

.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Blog Post Page Styles */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-thumbnail {
    flex-direction: column;
  }
  
  .blog-image {
    width: 100%;
    height: 200px;
    margin-top: 1rem;
  }
  
  .blog-info {
    padding-right: 0;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
}

/* Comment Section Styles */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.comments-section h4 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.3rem;
}

.comment-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  outline: none;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.submit-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #0056b3;
}

.comments-list {
  margin-top: 2rem;
}

.comment {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 1rem;
  background-color: #f8f9fa;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: #333;
}

.comment-date {
  color: #666;
  font-size: 0.9rem;
}

.comment-content {
  color: #444;
  line-height: 1.5;
}

/* Blog design refresh */

.blog-card {
  border: 1px solid rgba(38, 49, 63, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(38, 49, 63, 0.06);
}

.blog-thumbnail {
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  background: #ffffff;
}

.blog-thumbnail:hover {
  background: #f8fafc;
}

.blog-thumbnail:hover .blog-info h3 {
  color: #b71c1c;
}

.blog-info {
  padding-right: 0;
}

.blog-info h3 {
  color: #1f2935;
  font-family: "Roboto Slab", "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.35;
}

.blog-excerpt {
  color: #486778;
  line-height: 1.65;
}

.blog-image {
  width: 260px;
  height: 170px;
  border-radius: 8px;
  background: #eef2f5;
}

.blog-post {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(38, 49, 63, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(38, 49, 63, 0.06);
}

.blog-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(38, 49, 63, 0.1);
}

.blog-header h1 {
  color: #1f2935;
  font-family: "Roboto Slab", "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1.2;
}

.blog-meta {
  color: #486778;
}

.blog-body {
  color: #344253;
  font-size: 1.02rem;
  line-height: 1.8;
}

.blog-body p {
  margin-bottom: 1.15rem;
}

.blog-body figure {
  margin: 2rem 0;
}

.blog-body figure img {
  width: min(100%, 720px) !important;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(38, 49, 63, 0.1);
}

.blog-body figcaption {
  margin-top: 0.75rem;
  color: #6b7c8d;
  line-height: 1.5;
}

.social-share {
  border-top-color: rgba(38, 49, 63, 0.1);
}

.social-share h4,
.comments-section h4 {
  color: #1f2935;
  font-family: "Roboto Slab", "Times New Roman", serif;
}

.share-buttons {
  flex-wrap: wrap;
}

.share-button,
.submit-button {
  border-radius: 6px;
}

.comments-section {
  border-top-color: rgba(38, 49, 63, 0.1);
}

.form-control {
  border-color: rgba(38, 49, 63, 0.18);
  border-radius: 6px;
  background: #fbfcfd;
}

.form-control:focus {
  border-color: #b71c1c;
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.08);
}

.submit-button {
  background-color: #b71c1c;
}

.submit-button:hover {
  background-color: #8f1515;
}

.comment {
  border-color: rgba(38, 49, 63, 0.08);
  border-radius: 8px;
  background-color: #f8fafc;
}

@media (max-width: 768px) {
  .blog-thumbnail {
    align-items: stretch;
    gap: 1rem;
  }

  .blog-image {
    width: 100%;
    height: 220px;
    margin-top: 0;
  }

  .blog-post {
    padding: 1.35rem;
  }

  .blog-header h1 {
    font-size: 1.85rem;
  }
}

/* Editorial academic blog layer */

.blog-card {
  background: #fffdfa;
}

.blog-thumbnail {
  border-left: 4px solid transparent;
}

.blog-thumbnail:hover {
  border-left-color: #8f1d1d;
}

.blog-info h3 {
  color: #202a33;
}

.blog-image img {
  filter: saturate(0.94) contrast(1.02);
}

.blog-post {
  background: #fffdfa;
}

.blog-header h1 {
  max-width: 760px;
  color: #202a33;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(32, 42, 51, 0.12);
  border-radius: 999px;
  background: #f7f6f2;
}

.blog-body {
  max-width: 760px;
  margin: 0 auto;
}

.blog-body p:first-child {
  font-size: 1.12rem;
  color: #202a33;
}

.social-share,
.comments-section {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.share-button {
  box-shadow: none;
}

.facebook,
.linkedin,
.twitter,
.instagram {
  background: #31576b;
}

.share-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(32, 42, 51, 0.14);
  border-radius: 999px;
  background: #fffdfa;
  color: #202a33;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(32, 42, 51, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.share-button:hover,
.submit-button:hover {
  border-color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #17212b, #243747);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 33, 43, 0.18);
}

.share-button:focus,
.submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(143, 29, 29, 0.18), 0 8px 18px rgba(32, 42, 51, 0.05);
}

.blog-figure {
  text-align: center;
  margin: 1.5rem 0;
}

.blog-figure img {
  width: 60%;
  max-width: 100%;
  height: auto;
}

.blog-figure figcaption {
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
