/* Blog listing + article — scoped to .bdm-blog-page (use with .bdm-modern-home for page bg) */

.bdm-blog-page {
  background: #f6f7fb;
}

/* --- Listing hero (breadcrumb strip) --- */
.bdm-blog-page .bdm-blog-hero {
  position: relative;
  padding: 72px 0 64px;
  background-size: cover;
  background-position: center;
  margin-bottom: 0;
}

.bdm-blog-page .bdm-blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.bdm-blog-page .bdm-blog-hero .container {
  position: relative;
  z-index: 1;
}

.bdm-blog-page .bdm-blog-hero .breadcumb-wrap h2 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.bdm-blog-page .bdm-blog-hero .breadcumb-wrap ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bdm-blog-page .bdm-blog-hero .breadcumb-wrap ul li,
.bdm-blog-page .bdm-blog-hero .breadcumb-wrap ul a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.bdm-blog-page .bdm-blog-hero .breadcumb-wrap ul a:hover {
  color: #fff;
}

/* --- Listing grid --- */
.bdm-blog-page .bdm-blog-list {
  padding-top: 40px;
  padding-bottom: 56px;
}

.bdm-blog-page .bdm-blog-list .section-title h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 8px;
}

.bdm-blog-page .bdm-blog-list .section-title img {
  opacity: 0.85;
}

.bdm-blog-page .bdm-blog-card {
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bdm-blog-page .bdm-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.1);
}

.bdm-blog-page .bdm-blog-card .blog-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eaed;
}

.bdm-blog-page .bdm-blog-card .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bdm-blog-page .bdm-blog-card:hover .blog-image img {
  transform: scale(1.04);
}

.bdm-blog-page .bdm-blog-card .blog-image > ul {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 8px 10px;
  list-style: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.bdm-blog-page .bdm-blog-card .blog-image > ul li {
  line-height: 1.15;
  font-weight: 800;
  color: #111827;
}

.bdm-blog-page .bdm-blog-card .blog-image > ul li:first-child {
  font-size: 1.25rem;
}

.bdm-blog-page .bdm-blog-card .blog-image > ul li:last-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ef4836;
}

.bdm-blog-page .bdm-blog-card .blog-content {
  padding: 16px 18px 20px;
}

.bdm-blog-page .bdm-blog-card .blog-meta ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.bdm-blog-page .bdm-blog-card .blog-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(17, 24, 39, 0.55);
  font-weight: 600;
}

.bdm-blog-page .bdm-blog-card .blog-content h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
}

.bdm-blog-page .bdm-blog-card .blog-content h3 a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bdm-blog-page .bdm-blog-card .blog-content h3 a:hover {
  color: #ef4836;
}

.bdm-blog-page .bdm-blog-empty {
  text-align: center;
  padding: 48px 24px;
  color: rgba(17, 24, 39, 0.55);
  font-weight: 600;
}

/* --- Article --- */
.bdm-blog-page .bdm-blog-article-wrap {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  overflow: hidden;
  margin-bottom: 32px;
}

.bdm-blog-page .bdm-blog-article-wrap > img:first-child {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.bdm-blog-page .bdm-blog-article-inner {
  padding: 28px 28px 32px;
}

@media (max-width: 767px) {
  .bdm-blog-page .bdm-blog-article-inner {
    padding: 20px 18px 24px;
  }
}

.bdm-blog-page .bdm-blog-article-inner h1,
.bdm-blog-page .blog-details-wrap h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.25;
  margin: 0 0 16px;
}

.bdm-blog-page .bdm-blog-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.bdm-blog-page .bdm-blog-meta-pills li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(239, 72, 54, 0.08);
  color: #c53030;
}

.bdm-blog-page .bdm-blog-article-inner .bdm-blog-prose,
.bdm-blog-page .blog-details-wrap > p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(17, 24, 39, 0.88);
}

.bdm-blog-page .bdm-blog-article-inner .bdm-blog-prose img,
.bdm-blog-page .blog-details-wrap p img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}

.bdm-blog-page .bdm-blog-share {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.bdm-blog-page .bdm-blog-share .socil-icon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bdm-blog-page .bdm-blog-share .socil-icon li:first-child {
  font-weight: 700;
  color: #111827;
  margin-right: 4px;
}

.bdm-blog-page .bdm-blog-share .socil-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: #111827 !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.bdm-blog-page .bdm-blog-share .socil-icon a:hover {
  background: #ef4836;
  color: #fff !important;
}

.bdm-blog-page .bdm-blog-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ef4836 !important;
}

.bdm-blog-page .bdm-blog-next:hover {
  color: #d63c2b !important;
}

/* Comments */
.bdm-blog-page .comment-main .blog-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
}

.bdm-blog-page .comment-wrap {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(16, 24, 40, 0.06);
}

.bdm-blog-page .sewl-comments-meta h4 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: #111827;
}

.bdm-blog-page .sewl-comments-meta span {
  font-size: 0.82rem;
  color: rgba(17, 24, 39, 0.5);
}

.bdm-blog-page .comment-area p {
  margin: 8px 0 0;
  line-height: 1.6;
  color: rgba(17, 24, 39, 0.85);
}

.bdm-blog-page .sewl-comment-form input[type='text'],
.bdm-blog-page .sewl-comment-form input[type='email'],
.bdm-blog-page .sewl-comment-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bdm-blog-page .sewl-comment-form input:focus,
.bdm-blog-page .sewl-comment-form textarea:focus {
  outline: none;
  border-color: rgba(239, 72, 54, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 72, 54, 0.12);
}

.bdm-blog-page .sewl-comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.bdm-blog-page .bdm-blog-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.02em;
  background: #ef4836;
  color: #fff !important;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 8px 20px rgba(239, 72, 54, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.bdm-blog-page .bdm-blog-submit:hover {
  background: #d63c2b;
  transform: translateY(-1px);
}

/* Sidebar */
.bdm-blog-page .sidebar-area .widget {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  padding: 20px 18px;
  margin-bottom: 24px;
}

.bdm-blog-page .sidebar-area .widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(239, 72, 54, 0.35);
}

.bdm-blog-page .recent_post ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bdm-blog-page .recent_post ul li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.bdm-blog-page .recent_post ul li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bdm-blog-page .recent_post .post-img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eaed;
}

.bdm-blog-page .recent_post .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bdm-blog-page .recent_post .post-content a {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #111827;
  text-decoration: none;
}

.bdm-blog-page .recent_post .post-content a:hover {
  color: #ef4836;
}

.bdm-blog-page .recent_post .post-content p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: rgba(17, 24, 39, 0.5);
}

.bdm-blog-page .recent_post ul li a[href*='Frontendblog'] {
  font-weight: 700;
  color: #ef4836 !important;
}
