/* Blog post pages (static SEO pages) */

/* ============================================
   CUSTOM FONTS
   ============================================ */
@font-face {
  font-family: 'TheBasics Corporate';
  src: url('/TheBasics_Corporate-Regular.0710809a7b751dd7914e8038076bca78.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TheBasics Corporate';
  src: url('/TheBasics_Corporate-Bold.af9ed23d196ef1f7baa8803a740a3530.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-50: #e8f4fd;
  --primary-100: #c5e3fa;
  --primary-500: #1a5f9e;
  --primary-600: #154d80;
  --primary-700: #103a61;
  --primary-800: #0a2843;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #eeeeee;
  --neutral-300: #e0e0e0;
  --neutral-400: #bdbdbd;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;
  --font-primary: 'TheBasics Corporate', 'Segoe UI', sans-serif;
  --font-heading: 'TheBasics Corporate', 'Segoe UI', sans-serif;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--font-primary);
  background: linear-gradient(180deg, var(--neutral-50) 0%, white 100%);
  min-height: 100vh;
  line-height: 1.85;
  color: var(--neutral-700);
  overflow-x: hidden;
  max-width: 100vw;
}

/* Header */
.header {
  background: white;
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 45px; width: auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.back-link:hover { color: var(--primary-600); gap: 0.75rem; }
.back-link svg { width: 20px; height: 20px; }

/* Hero */
.post-hero { position: relative; height: 420px; overflow: hidden; }
.post-hero-image { width: 100%; height: 100%; object-fit: cover; }
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 40, 67, 0.92) 0%, rgba(10, 40, 67, 0.35) 55%, transparent 100%);
}
.post-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem;
  color: white;
  max-width: 920px;
  margin: 0 auto;
}
.post-category {
  display: inline-block;
  background: var(--primary-500);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.92;
}
.post-meta span { display: flex; align-items: center; gap: 0.4rem; }

/* Content */
.post-container { max-width: 840px; margin: 0 auto; padding: 3rem 2rem; }
.post-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  margin-top: -90px;
  position: relative;
}
.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-700);
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--primary-100);
}
.post-content h2:first-child { margin-top: 0; }
.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--neutral-800);
  margin: 1.9rem 0 0.75rem;
}
.post-content p {
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--neutral-700);
  margin-bottom: 1.4rem;
}
.post-content ul, .post-content ol { margin: 1.4rem 0; padding-right: 1.5rem; }
.post-content li { font-size: 1.05rem; line-height: 1.85; margin-bottom: 0.75rem; }
.post-content strong { color: var(--neutral-900); font-weight: 800; }
.post-content a { color: var(--primary-600); text-decoration: underline; text-underline-offset: 4px; }
.post-content a:hover { color: var(--primary-500); }
.post-content blockquote {
  background: var(--primary-50);
  border-right: 4px solid var(--primary-500);
  padding: 1.4rem 1.8rem;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  color: var(--primary-700);
  font-weight: 600;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-200);
}
.post-tag {
  background: var(--primary-50);
  color: var(--primary-600);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Author box */
.author-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--neutral-100);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  margin-top: 2.5rem;
}
.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.author-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--neutral-900);
  margin-bottom: 0.2rem;
}
.author-info p { font-size: 0.95rem; color: var(--neutral-600); margin: 0; }

/* Related Links Box - Internal SEO Links */
.related-links {
  background: var(--neutral-50);
  border: 2px solid var(--primary-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
}
.related-links h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary-700);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-200);
}
.related-links ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.related-links li {
  margin-bottom: 0.75rem;
  padding-right: 1.5rem;
  position: relative;
}
.related-links li::before {
  content: "→";
  position: absolute;
  right: 0;
  color: var(--primary-500);
  font-weight: 900;
}
.related-links a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.related-links a:hover {
  color: var(--primary-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.related-links p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--neutral-700);
  border-top: 1px solid var(--neutral-200);
  padding-top: 1rem;
}
.related-links p strong {
  color: var(--neutral-900);
  font-weight: 800;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin: 0 auto 2rem;
  max-width: 680px;
}
.cta-btn {
  display: inline-block;
  background: white;
  color: var(--primary-600);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.05rem;
  transition: all 0.25s ease;
}
.cta-btn:hover { background: var(--neutral-100); transform: translateY(-2px); }

/* Footer */
.footer { background: var(--neutral-900); padding: 2rem; }
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: white; }
.footer-brand { color: var(--neutral-400); font-size: 0.9rem; font-weight: 600; }

@media (max-width: 768px) {
  .post-hero { height: 320px; }
  .post-hero-content { padding: 2rem 1.25rem; }
  .post-container { padding: 2.2rem 1.25rem; }
  .post-content { padding: 2rem 1.35rem; margin-top: -55px; }
  .author-box { flex-direction: column; text-align: center; }
  .footer-content { flex-direction: column; text-align: center; }
}

/* ============================================
   BLOG LISTING PAGE STYLES
   ============================================ */

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Prevent horizontal overflow on all sections */
section {
  max-width: 100%;
  overflow-x: hidden;
}

/* Blog Header */
.blog-header {
  background: white;
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.blog-logo img {
  height: 50px;
  width: auto;
  background: white;
  padding: 8px 12px;
  border-radius: var(--radius-md);
}

.blog-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-600);
}

/* Blog Hero */
.blog-hero {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.blog-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.blog-hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Blog Posts Section */
.blog-posts-section {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, white 0%, var(--neutral-50) 100%);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-post-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--neutral-200);
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}

.blog-post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post-card:hover .blog-post-image img {
  transform: scale(1.08);
}

.blog-post-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-500);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-2xl);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(26, 95, 158, 0.3);
}

.blog-post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-post-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.blog-post-card:hover .blog-post-title {
  color: var(--primary-500);
}

.blog-post-excerpt {
  color: var(--neutral-600);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.blog-tag {
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.blog-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-200);
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--neutral-600);
}

.blog-post-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

.blog-post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-500);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.blog-post-card:hover .blog-post-read-more {
  color: var(--primary-600);
  gap: 10px;
}

.blog-post-read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

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

/* Blog CTA Section */
.blog-cta {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.blog-cta-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  color: white;
}

.blog-cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary-600);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  background: var(--neutral-100);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Blog Footer */
.blog-footer {
  background: var(--neutral-900);
  padding: 3rem 2rem;
}

.blog-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  color: white;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
  background: white;
  padding: 10px;
  border-radius: var(--radius-md);
}

.footer-brand p {
  color: var(--neutral-400);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-700);
  margin-top: 1rem;
}

.footer-copy p {
  color: var(--neutral-500);
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow on mobile */
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  
  .blog-header-container,
  .container {
    padding: 0 1.25rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .blog-nav {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .blog-hero {
    padding: 3rem 1.25rem;
    overflow-x: hidden;
  }
  
  .blog-posts-section {
    padding: 3rem 1.25rem;
    overflow-x: hidden;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }
  
  .blog-post-card {
    max-width: 100%;
  }
  
  .blog-post-image {
    height: 200px;
  }
  
  .blog-post-title {
    font-size: 1.1rem;
    word-wrap: break-word;
  }
  
  .blog-post-excerpt {
    font-size: 0.9rem;
  }
  
  .blog-cta {
    padding: 3rem 1.25rem;
    overflow-x: hidden;
  }
  
  .blog-footer {
    padding: 2rem 1.25rem;
  }
  
  .blog-footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .footer-links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .blog-logo img {
    height: 40px;
  }
  
  .blog-post-content {
    padding: 1.25rem;
  }
  
  .blog-post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
