/* =========================================================
   BLOGS (Global styles for Blog Cards and Single Blog Pages)
   ========================================================= */

/* --- Blog Cards (Home Page & Grids) --- */
.blogs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  /* Forces the card to stay small */
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--ink-line-2);
}

.blog-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

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

.blog-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.blog-date,
.blog-read-time {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--on-dark-dim);
}

.blog-content h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 12px;
  font-family: var(--display);
}

.blog-content h3 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-content h3 a:hover {
  color: var(--red);
}

.blog-content p {
  color: var(--on-dark-mut);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  margin-top: auto;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-read-more svg {
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more {
  color: var(--red);
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(5px);
}

/* --- Single Blog Page --- */
.blog-single-page {
  background-color: #0B0C10;
  /* Very dark black background */
}

.blog-single-header {
  padding: 160px 20px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.blog-single-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}

.blog-single-meta {
  color: var(--on-dark-dim);
  font-size: 0.95rem;
  font-family: var(--mono);
}

.blog-single-hero-img {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-single-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-single-content {
  max-width: 840px;
  margin: 0 auto;
  color: var(--on-dark-mut);
  font-size: 1.05rem;
  line-height: 1.8;
  padding: 0 0 80px;
}

.blog-single-content h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  color: #fff;
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
}

.blog-single-content h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: #fff;
  margin: 32px 0 16px;
}

.blog-single-content p {
  margin-bottom: 28px;
}

.blog-single-content ul,
.blog-single-content ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.blog-single-content li {
  margin-bottom: 12px;
  padding-left: 8px;
}

.blog-single-content li::marker {
  color: var(--red);
}

.blog-single-content strong {
  color: #fff;
}

.blog-single-content a:not(.btn) {
  color: #e5162b;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 54, 54, 0.3);
  transition: all 0.2s ease;
}

.blog-single-content a:not(.btn):hover {
  color: #fff;
  border-bottom-color: #fff;
}

.blog-single-content .btn {
  color: #fff !important;
}

@media (max-width: 768px) {
  .blog-single-title {
    font-size: 2.2rem;
  }
}

/* Mobile View */
@media (max-width: 767px) {
  .blog-single-header {
    padding-top: 105px !important;
  }
}

.blog-link {
  color: red;
}