/* ============================================
   BLOG STYLES — clean, modern, iOS-safe
   ============================================ */

/* Index page cards */
.blog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.1);
}
.blog-card-img {
  width: 100%;
  height: 220px;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem !important;
}
.blog-card-title {
  color: #0d1b2a;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
  display: block;
  margin-bottom: 0.5rem;
}
.blog-card-title:hover,
.blog-card-title:focus {
  color: #d4a017;
  text-decoration: none;
}
.blog-meta {
  font-size: 0.85rem;
  color: #6b7280;
}
.btn-style-sm span {
  padding: 0.45rem 0.95rem !important;
  font-size: 0.85rem !important;
}

/* ============================================
   BLOG POST HERO
   ============================================ */
.blog-hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  overflow: hidden;
  background: #0d1b2a;
  padding-top: 60px;
  padding-bottom: 50px;
}
.blog-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.blog-hero-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: -webkit-linear-gradient(
    top,
    rgba(13, 27, 42, 0.25) 0%,
    rgba(13, 27, 42, 0.55) 55%,
    rgba(13, 27, 42, 0.85) 100%
  );
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.25) 0%,
    rgba(13, 27, 42, 0.55) 55%,
    rgba(13, 27, 42, 0.85) 100%
  );
}
.blog-hero-inner {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding-top: 2rem;
  padding-bottom: 1rem;
}
.blog-hero-back {
  display: inline-block;
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.blog-hero-back:hover,
.blog-hero-back:focus {
  color: #d4a017;
  opacity: 1;
  text-decoration: none;
}
.blog-hero-category {
  display: inline-block;
  background: #d4a017;
  color: #0d1b2a;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.blog-hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.18;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1rem 0;
  max-width: 920px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.blog-hero-meta {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.4rem;
}
.blog-hero-meta .dot {
  opacity: 0.6;
}

@media (max-width: 767.98px) {
  .blog-hero {
    min-height: 320px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .blog-hero-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  .blog-hero-meta {
    font-size: 0.85rem;
  }
}

/* ============================================
   BLOG POST BODY
   ============================================ */
.blog-post {
  background: #fafafa;
}
.blog-post .blog-content {
  font-size: 1.06rem;
  line-height: 1.75;
  color: #1f2937;
  background: #ffffff;
  padding: 2rem 2.25rem;
  border-radius: 10px;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.blog-post .blog-content > *:first-child {
  margin-top: 0;
}
.blog-post .blog-content .lead {
  font-size: 1.18rem;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: 500;
}
.blog-post .blog-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  color: #0d1b2a;
  font-weight: 700;
  line-height: 1.3;
}
.blog-post .blog-content h3 {
  margin-top: 1.85rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: #0d1b2a;
  font-weight: 700;
  line-height: 1.35;
}
.blog-post .blog-content p {
  margin-bottom: 1.05rem;
}
.blog-post .blog-content ul,
.blog-post .blog-content ol {
  margin: 0.75rem 0 1.35rem 1.25rem;
  padding-left: 0.5rem;
}
.blog-post .blog-content li {
  margin-bottom: 0.55rem;
  line-height: 1.65;
}
.blog-post .blog-content a {
  color: #b8860b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-post .blog-content a:hover {
  color: #d4a017;
}
.blog-post .blog-content strong {
  color: #0d1b2a;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .blog-post .blog-content {
    padding: 1.25rem 1.1rem;
  }
}

/* CTA box */
.blog-cta {
  background: #ffffff;
  border-radius: 10px;
  border-left: 4px solid #d4a017;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.blog-cta h3 {
  color: #0d1b2a;
  margin-bottom: 0.75rem;
}

/* Related posts */
.related-posts h3 {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
  font-size: 1.25rem;
  color: #0d1b2a;
}
.related-posts a {
  color: #0d1b2a;
  text-decoration: none;
  font-weight: 500;
}
.related-posts a:hover {
  color: #d4a017;
  text-decoration: underline;
}
