/* ============================================
   Blog Styles - American Bridge Capital
   Matches the live site's Bootstrap 5 + custom CSS
   ============================================ */

/* Blog Hero Section */
.blog-hero-section {
  padding: 200px 0 60px;
  background: linear-gradient(135deg, #0c4c89 0%, #093562 100%);
  position: relative;
}
.blog-hero-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("/images/pattern.svg") repeat;
  background-size: 20px;
  opacity: 0.05;
}
.blog-hero-section h1 {
  position: relative;
  z-index: 1;
  font-family: "Roboto", sans-serif;
  font-weight: 400 !important;
  letter-spacing: 2px;
}
.blog-hero-section .lead {
  position: relative;
  z-index: 1;
  max-width: 700px;
  font-family: "Momo Trust Sans", sans-serif;
  font-weight: 300;
}
.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

/* Featured Post */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  color: inherit;
}
.blog-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 350px;
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-featured:hover .blog-featured-img img {
  transform: scale(1.03);
}
.blog-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-body h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  text-transform: none;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #0c4c89;
}
.blog-featured-body p {
  font-family: "Momo Trust Sans", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.blog-category {
  font-family: "Roboto", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c33846;
}
.blog-date {
  font-family: "Momo Trust Sans", sans-serif;
  font-size: 0.85rem;
  color: #999;
  font-weight: 300;
}

/* Read More Link */
.blog-read-more {
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0c4c89;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  transition: gap 0.3s ease;
}
.blog-featured:hover .blog-read-more,
.blog-card:hover .blog-read-more {
  gap: 0.75rem;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  color: inherit;
}
.blog-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-body h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: none;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: #0c4c89;
}
.blog-card-body p {
  font-family: "Momo Trust Sans", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Hero */
.blog-article-hero {
  padding: 200px 0 60px;
  background: linear-gradient(135deg, #0c4c89 0%, #093562 100%);
  position: relative;
}
.blog-article-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("/images/pattern.svg") repeat;
  background-size: 20px;
  opacity: 0.05;
}
.blog-article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.blog-article-hero h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 700 !important;
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: 1px;
}
.blog-category-pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(195, 56, 70, 0.9);
  color: #fff;
  border-radius: 50px;
  font-family: "Roboto", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Author */
.blog-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.blog-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #c33846;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

/* Article Body */
.blog-article-body {
  font-family: "Momo Trust Sans", sans-serif;
  font-weight: 300;
}
.blog-article-body h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #0c4c89;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.blog-article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
}
.blog-back-link {
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0c4c89;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-back-link:hover {
  color: #c33846;
}

/* Borrower list */
.blog-borrower-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.blog-borrower-list li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Callout */
.blog-callout {
  background: #f0f6fb;
  border-left: 4px solid #0c4c89;
  padding: 2rem;
  border-radius: 0 12px 12px 0;
  margin: 3rem 0;
}
.blog-callout h5 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: #0c4c89;
  margin-bottom: 1rem;
}
.blog-callout p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}
.blog-callout a {
  color: #0c4c89;
}

/* Article Navigation */
.blog-article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}
.blog-nav-prev,
.blog-nav-next {
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0c4c89;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}
.blog-nav-prev:hover,
.blog-nav-next:hover {
  color: #c33846;
}

/* CTA Section */
.blog-cta-section {
  background: linear-gradient(135deg, #c33846 0%, #a82c3a 100%);
}
.blog-cta-section h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
}
.blog-cta-section .lead {
  font-family: "Momo Trust Sans", sans-serif;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.blog-cta-section .btn-light {
  color: #c33846;
  padding: 12px 30px;
}
.blog-cta-section .btn-light:hover {
  background: #0c4c89;
  color: #fff;
  border-color: #0c4c89;
}

/* Blog Listing */
.blog-listing {
  background: #f8f9fa;
}

/* Responsive */
@media (max-width: 991px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured-img {
    min-height: 250px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-hero-section {
    padding: 160px 0 40px;
  }
  .blog-article-hero {
    padding: 160px 0 40px;
  }
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-featured-body {
    padding: 1.5rem;
  }
  .blog-featured-body h2 {
    font-size: 1.3rem;
  }
  .blog-hero-section h1 {
    font-size: 2rem;
  }
  .blog-article-hero h1 {
    font-size: 1.6rem;
  }
  .blog-hero-section {
    padding: 140px 0 30px;
  }
  .blog-article-hero {
    padding: 140px 0 30px;
  }
}