/* Blog Page Styling */

/* Page Background */
body.page-node-type-blogs,
body.page-node-type-article {
  background-color: #0b0a1f;
  /* Dark background matching the theme */
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  /* Assuming Inter or similar */
}

/* Layout */
.blog-post-full {
  width: 100%;
}

/* Header */
.blog-header {
  padding-top: 1rem;
  /* py-4 */
  padding-bottom: 2.5rem;
  /* pb-10 */
}

.blog-title {
  font-weight: 500;
  font-size: 1.875rem;
  /* text-3xl */
  line-height: 1.2;
  color: #ffffff;
}

@media (min-width: 1024px) {
  .blog-title {
    font-size: 3rem;
    /* lg:text-5xl */
  }
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.875rem;
  color: #ffffff;
  padding-left: 33px;
}

/* Featured Image */
.blog-featured-image {
  position: relative;
  margin-bottom: 2.5rem;
  /* mb-10 */
  overflow: hidden;
  width: 100%;
  height: auto;
  /* Changed from fixed 400px */
}

.blog-featured-image img {
  width: 100%;
  height: auto;
  /* Changed from 100% */
  object-fit: contain;
  /* Changed from cover to contain */
  display: block;
}

/* Main Content Grid */
.blog-main {
  position: relative;
  z-index: 20;
  padding-left: 25px;
  padding-right: 25px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .blog-content-col {
    grid-column: span 3 / span 3;
  }

  .blog-sidebar-col {
    grid-column: span 1 / span 1;
  }
}

/* Blog Content Typography */
.blog-content {
  color: #d1d5db;
  /* text-gray-300 */
  font-size: 1.125rem;
  /* text-lg */
  line-height: 1.625;
}

.blog-content h2 {
  font-size: 1.875rem;
  /* text-3xl */
  font-weight: 700;
  color: #f3f4f6;
  /* text-gray-100 */
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .blog-content h2 {
    font-size: 2.25rem;
    /* lg:text-4xl */
  }
}

.blog-content h3 {
  font-size: 1.5rem;
  /* text-2xl */
  font-weight: 700;
  color: #e5e7eb;
  /* text-gray-200 */
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

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

/* Sidebar Widgets */

.widget-corner {
  position: absolute;
  bottom: -1px;
  left: -1px;
  background-color: #020113;
  /* Match bg */
  width: 1rem;
  height: 1rem;
}

.widget-title {
  margin-bottom: 0.5rem;
  font-weight: 300;
  /* font-light */
  font-size: 1.25rem;
  /* text-xl */
  color: #ffffff;
}

.widget-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* space-y-3 */
}

.widget-link {
  font-size: 1rem;
  /* text-md */
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
}

.widget-link:hover {
  text-decoration: underline;
}

.widget-link.active {
  color: #30A3FF;
  font-weight: 500;
}

/* === BLOG LIST CARD (views rows) ======================= */

.blog-listing-page .list-blog-ctn {
  position: relative;
  display: flex;
  gap: 32px;
  margin-bottom: 4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-listing-page .list-blog-ctn:hover {
  transform: translateY(-4px);
}

/* Left: image */
.blog-listing-page .img-blog-area {
  flex: 0 0 42%;
  border-radius: 24px;
  overflow: hidden;
}

.blog-listing-page .img-blog-area img {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.blog-listing-page .list-blog-ctn:hover .img-blog-area img {
  transform: scale(1.05);
}

/* Right: text content */
.blog-listing-page .content-blog-area {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  color: #e5e7eb;
}


.blog-listing-page .categry-blog-tag {
  letter-spacing: 1px;
  color: #30a3ff;
  margin-bottom: 4px;
  font-weight: 800;
}

.categry-blog-tag span {
  color: rgb(255, 255, 255, 1);
  font-weight: 500;
}

/* Title */
.blog-listing-page .title-blog-list a {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: #f9fafb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-listing-page .list-blog-ctn:hover .title-blog-list a {
  color: #30a3ff;
}

/* Short summary */
.blog-listing-page .blog_short-smry {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  color: rgb(156, 163, 175, 1);
}

/* Date line */
.blog-listing-page .published-date-list {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-left: 21px;
}

.blog-listing-page .published-date-list::before {
  content: "";
  font-size: 14px;
  background: url(../images/calendar.png);
  background-repeat: no-repeat;
  width: 54px;
  height: 100%;
  background-size: 25%;
  display: block;
  position: absolute;
  left: 0;
  top: 2px;
}

/* Read more link */
.blog-listing-page .view-more-blog {
  margin-top: 12px;
}

.blog-listing-page .view-more-blog a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  text-decoration: none;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}

.blog-listing-page .view-more-blog a::after {
  content: "\003e";
  font-size: 18px;
  height: 24px;
  font-weight: 400;
}

.blog-listing-page .view-more-blog a:hover {
  transform: translateX(8px);
  color: rgb(147, 197, 253, 1);
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .blog-listing-page .list-blog-ctn {
    flex-direction: column;
    padding: 18px 16px;
  }

  .blog-listing-page .img-blog-area {
    flex: 0 0 auto;
  }

  .blog-listing-page .title-blog-list a {
    font-size: 20px;
  }
}