/* Blog Styles - Stepwize Theme */

/* Reset and Base */
.blog-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
}

/* Header */
.blog-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.98); /* Ensure solid background */
}

.blog-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00008B;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-nav-button {
  padding: 0.5rem 1rem;
  background: #00008B;
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.blog-nav-button:hover {
  background: #00006B;
  color: white;
  text-decoration: none;
}

/* Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  padding: 4rem 0;
}

.blog-hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.blog-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.blog-hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Blog Grid */
.blog-posts-section {
  padding: 4rem 0;
}

.blog-posts-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Blog Card */
.blog-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: #00008B;
  text-decoration: none;
  color: inherit;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.blog-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #00008B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-read-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.blog-card-date {
  font-size: 0.75rem;
  color: #6b7280;
}

.blog-card-link {
  color: #00008B;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Article Page */
.blog-article-container {
  max-width: 896px;
  margin: 0 auto;
  padding: 1rem;
  padding-top: 3rem; /* Extra padding to account for sticky navbar */
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  color: #00008B;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.blog-back-link:hover {
  color: #00006B;
  text-decoration: none;
}

.blog-article-header {
  margin-bottom: 3rem;
  position: relative; /* Ensure it scrolls normally */
  z-index: 1; /* Lower than navbar */
}

.blog-article-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #00008B;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.blog-article-title {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative; /* Ensure it scrolls normally */
  z-index: 1; /* Lower than navbar */
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.blog-article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-article-content {
  color: #374151;
  line-height: 1.75;
  font-size: 1.125rem;
}

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

.blog-article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
  scroll-margin-top: 5rem; /* Prevent heading from going under sticky navbar */
}

.blog-article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 5rem; /* Prevent heading from going under sticky navbar */
}

.blog-article-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-article-content li {
  margin-bottom: 0.75rem;
}

.blog-article-content strong {
  font-weight: 600;
  color: #111827;
}

.blog-article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Footer - Matching Homepage */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid #1e293b;
  margin-top: 4rem;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 1.5rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  vertical-align: middle;
  display: block;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

.footer-section {
  min-width: 0;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  margin: 0;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-block;
  line-height: 1.5;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-link-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-email-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.footer-link-email:hover .footer-email-icon {
  transform: translateY(-2px);
}

.footer-help-text {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
}

.footer-copyright {
  margin: 0;
  color: #64748b;
  font-size: 0.8125rem;
}

.footer-link-small {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
  font-weight: 500;
}

.footer-link-small:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }

  .footer-copyright {
    font-size: 0.75rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero-title {
    font-size: 2.25rem;
  }

  .blog-hero-subtitle {
    font-size: 1.125rem;
  }

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

  .blog-article-title {
    font-size: 2rem;
  }

  .blog-article-content {
    font-size: 1rem;
  }

  .blog-article-content h2 {
    font-size: 1.5rem;
  }

  .blog-article-content h3 {
    font-size: 1.25rem;
  }
}

