/* ===================================================
   SecuredSiteDNS Blog / Announcements Styles
   Matches existing theme: DM Sans, dark navy, green accents
   =================================================== */

/* --- Blog Listing Grid --- */
.blog-listing {
  padding: 40px 0 60px;
}

.blog-listing .section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.blog-listing .section-heading h1 {
  font-size: 32px;
  font-weight: 700;
  color: #081131;
  margin-bottom: 10px;
}

.blog-listing .section-heading p {
  font-size: 16px;
  color: #667093;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Blog Card --- */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(102, 112, 147, 0.14);
  box-shadow: 0 4px 24px rgba(8, 17, 49, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(8, 17, 49, 0.12);
  border-color: rgba(58, 125, 68, 0.3);
}

.blog-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0b5ed7 0%, #081131 100%);
}

.blog-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.05);
}

.blog-card .card-image .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-main, #3a7d44);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #667093;
}

.blog-card .card-meta i {
  margin-right: 4px;
  color: var(--color-main, #3a7d44);
}

.blog-card .card-title {
  font-size: 18px;
  font-weight: 700;
  color: #081131;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card .card-title a:hover {
  color: var(--color-main, #3a7d44);
}

.blog-card .card-excerpt {
  font-size: 14px;
  color: #667093;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .card-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-main, #3a7d44);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.blog-card .card-footer-link:hover {
  gap: 10px;
}

.blog-card .card-footer-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.blog-card .card-footer-link:hover i {
  transform: translateX(3px);
}

/* --- Blog Default Thumbnail (when no image) --- */
.blog-card .card-image .default-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Blog Article Single Page --- */
.blog-article {
  padding: 40px 0 60px;
}

.blog-article .article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(102, 112, 147, 0.14);
}

.blog-article .article-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #081131;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-article .article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #667093;
  flex-wrap: wrap;
}

.blog-article .article-meta i {
  margin-right: 5px;
  color: var(--color-main, #3a7d44);
}

.blog-article .article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.blog-article .article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #081131;
  margin: 28px 0 14px;
}

.blog-article .article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #081131;
  margin: 22px 0 10px;
}

.blog-article .article-content p {
  margin-bottom: 16px;
}

.blog-article .article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

.blog-article .article-content a {
  color: var(--color-main, #3a7d44);
  text-decoration: underline;
}

.blog-article .article-content ul,
.blog-article .article-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.blog-article .article-content li {
  margin-bottom: 8px;
}

/* --- Social Share Bar --- */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  margin: 30px 0;
  border-top: 1px solid rgba(102, 112, 147, 0.14);
  border-bottom: 1px solid rgba(102, 112, 147, 0.14);
}

.social-share-bar .share-label {
  font-size: 14px;
  font-weight: 600;
  color: #081131;
  margin-right: 8px;
}

.social-share-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-share-bar a:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.social-share-bar .share-twitter {
  background: #1da1f2;
}

.social-share-bar .share-facebook {
  background: #1877f2;
}

.social-share-bar .share-linkedin {
  background: #0a66c2;
}

.social-share-bar .share-whatsapp {
  background: #25d366;
}

/* --- Announcement/Blog Pagination --- */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.blog-pagination .btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(102, 112, 147, 0.2);
  background: #fff;
  color: #667093;
  transition: all 0.2s ease;
}

.blog-pagination .btn:hover,
.blog-pagination .btn.active {
  background: var(--color-main, #3a7d44);
  color: #fff;
  border-color: var(--color-main, #3a7d44);
}

.blog-pagination .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Homepage Blog Section --- */
.home-blog-section {
  padding: 60px 0;
  background: #f7f9fc;
}

.home-blog-section .section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.home-blog-section .section-heading span {
  display: inline-block;
  background: rgba(58, 125, 68, 0.1);
  color: var(--color-main, #3a7d44);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-blog-section .section-heading h2 {
  font-size: 28px;
  font-weight: 700;
  color: #081131;
  margin-bottom: 8px;
}

.home-blog-section .section-heading p {
  font-size: 15px;
  color: #667093;
}

.home-blog-section .view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  padding: 10px 24px;
  background: var(--color-main, #3a7d44);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-blog-section .view-all-btn:hover {
  background: #2d6535;
  transform: translateY(-2px);
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .blog-listing .section-heading h1 {
    font-size: 24px;
  }
  
  .blog-card .card-image {
    height: 160px;
  }
  
  .blog-card .card-title {
    font-size: 16px;
  }
  
  .blog-article .article-header h1 {
    font-size: 22px;
  }
  
  .social-share-bar {
    flex-wrap: wrap;
  }
  
  .home-blog-section .section-heading h2 {
    font-size: 22px;
  }
}
