/* ── CSS VARIABLES ── */
:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  --navy-blue: #0a1f44;
  --navy-dark: #0d1b3e;
  --black: #000000;
  --white: #ffffff;
  
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-light: #60a5fa;
  
  --text-on-navy: #ffffff;
  --text-on-white: #111111;
  --text-on-black: #e5e5e5;
  
  --text-muted-on-navy: rgba(255, 255, 255, 0.75);
  --text-muted-on-white: #555555;
  --text-muted-on-black: #b0b0b0;
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-navy: rgba(255, 255, 255, 0.12);
  --border-black: rgba(255, 255, 255, 0.08);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 100px;
  
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  --transition-base: 0.2s ease;
}

/* ── RESET & BASE ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-white);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

#main-content {
  position: relative;
  z-index: 1;
}

/* ── BLOG POST HERO SECTION ── */
.blog-post-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--space-8) 80px;
  position: relative;
  overflow: hidden;
  background-image: url('../assets/blog_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-post-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.blog-post-hero-image {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.blog-post-hero-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

.blog-post-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.625rem 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ffffff;
  z-index: 2;
  letter-spacing: 0.02em;
}

.blog-post-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 2;
}

.blog-post-hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-post-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
}

.blog-post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.blog-post-meta-item svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

.blog-post-meta-item span {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.blog-post-author {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.blog-post-date {
  color: rgba(255, 255, 255, 0.6);
}

/* ── BLOG POST CONTENT SECTION ── */
.blog-post-content-section {
  background: #ffffff;
  padding: 2rem var(--space-8);
  position: relative;
}

.blog-post-content-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}

.blog-post-left-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 5rem;
  align-self: start;
}

/* Table of Contents */
.blog-post-toc {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-height: calc(100vh - 20rem);
  overflow-y: auto;
}

.blog-post-toc::-webkit-scrollbar {
  width: 4px;
}

.blog-post-toc::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.blog-post-toc::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 4px;
}

.blog-post-toc::-webkit-scrollbar-thumb:hover {
  background: #aaaaaa;
}

.blog-post-toc h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  position: relative;
}

.blog-post-toc-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  width: 100%;
}

.blog-post-toc-links a {
  font-size: 0.875rem;
  color: #111111;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  display: block;
  width: 100%;
  white-space: normal;
  word-wrap: break-word;
  font-weight: 400;
}

.blog-post-toc-links a.toc-main {
  color: #111111;
  font-weight: 600;
}

.blog-post-toc-links a.toc-sub {
  color: #111111;
  font-weight: 400;
  font-size: 0.8125rem;
  padding-left: 1rem;
}

.blog-post-toc-links a:hover {
  color: #3b82f6;
}

.blog-post-toc-links a.toc-active {
  color: #3b82f6;
  transform: scale(1.03);
  font-weight: 700;
}

.blog-post-toc-links a:focus {
  outline: none;
  box-shadow: none;
}

.blog-post-toc-links a:first-child {
  font-weight: 600;
}

/* Main Article Content */
.blog-post-article {
  background: #ffffff;
  padding: 3rem;
}

.blog-post-article h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: #111111;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.blog-post-article h2:first-child {
  margin-top: 0;
}

.blog-post-article p {
  font-size: 1.0625rem;
  color: #333333;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.blog-post-article p:last-child {
  margin-bottom: 0;
}

.blog-post-article h2 {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  color: #111111;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.blog-post-article ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.blog-post-article ul li {
  font-size: 1rem;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.blog-post-article ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #111111;
  font-weight: bold;
}

.blog-post-article ul li strong {
  color: #111111;
  font-weight: 600;
}

.blog-post-article ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.blog-post-article ul li {
  font-size: 1.0625rem;
  color: #333333;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.blog-post-article ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #111111;
  font-weight: bold;
}

.blog-post-article ul li strong {
  color: #111111;
  font-weight: 700;
}

.blog-post-article h2 {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.blog-post-article h2 {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.blog-post-article h2:first-child {
  margin-top: 0;
}

/* ── SHARE SECTION ── */
.blog-post-share {
  margin-top: 0;
}

.blog-post-share h3 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.blog-post-share-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.share-icon-btn:hover {
  border-color: #999999;
  color: #333333;
}

.share-icon-email {
  font-size: 1.125rem;
  font-weight: 500;
  font-family: var(--font-body);
}

/* Share Section */
.blog-post-share {
  margin-top: 0;
}

.blog-post-share h3 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.blog-post-share-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.share-icon-btn:hover {
  border-color: #888888;
  color: #333333;
  transform: translateY(-2px);
}

@media (max-width: 968px) {
  .blog-post-content-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-post-hero {
    min-height: 50vh;
    padding: 120px var(--space-4) 40px;
  }
  
  .blog-post-hero-image {
    margin-bottom: 2rem;
  }
  
  .blog-post-badge {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
  }
  
  .blog-post-hero h1 {
    font-size: 1.75rem;
  }
  
  .blog-post-description {
    font-size: 1rem;
  }
  
  .blog-post-content-section {
    padding: 3rem var(--space-4);
  }
  
  .blog-post-article {
    padding: 2rem;
  }
  
  .blog-post-toc {
    padding: 1.5rem;
  }
}

/* ── ACCESSIBILITY ── */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--accent-blue);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 99999;
  transition: top var(--transition-base);
}

.skip-to-main:focus {
  top: var(--space-4);
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

a:focus,
button:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}




/* ── EXPERT FORM ── */
.blog-expert-form {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
}

.blog-expert-form-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.blog-expert-form-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-expert-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-expert-form-field label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #111111;
}

.blog-expert-form-field input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #111111;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.blog-expert-form-field input::placeholder {
  color: #b0b0b0;
}

.blog-expert-form-field input:focus {
  border-color: #6366f1;
}

.blog-expert-form-submit {
  width: 100%;
  padding: 0.65rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(to right, #38bdf8, #6366f1);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 0.25rem;
}

.blog-expert-form-submit:hover {
  opacity: 0.9;
}

/* ── BLOG CTA BANNER ── */
.blog-cta-banner {
  background-image: url('../assets/blogcta.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  overflow: hidden;
  margin: 2rem 0;
}

.blog-cta-banner-inner {
  background: rgba(0, 0, 0, 0.45);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
}

.blog-cta-banner-title {
  font-family: var(--font-body);
  font-size: 2.25rem !important;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.3;
}

.blog-cta-banner-btn {
  display: inline-block;
  padding: 0.85rem 2.75rem;
  border-radius: 50px;
  background: linear-gradient(to right, #38bdf8, #6366f1);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-cta-banner-btn:hover {
  opacity: 0.88;
}

/* ── NEWSLETTER CARD ── */
.blog-newsletter-card {
  background-image: url('../assets/blogcta.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.blog-newsletter-inner {
  background: rgba(0, 0, 0, 0.5);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.blog-newsletter-title {
  font-family: var(--font-body);
  font-size: 1.5rem !important;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.3;
}

.blog-newsletter-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

.blog-newsletter-input-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 0.3rem 0.3rem 0.3rem 1.25rem;
  backdrop-filter: blur(4px);
}

.blog-newsletter-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  min-width: 0;
}

.blog-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.blog-newsletter-btn {
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: none;
  background: linear-gradient(to right, #38bdf8, #6366f1);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-newsletter-btn:hover {
  opacity: 0.88;
}

/* ── FAQ SECTION ── */
.blog-faq-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.blog-faq-container {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
}

.blog-faq-title {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.blog-faq-desc {
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
}

.blog-faq-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-faq-item {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.blog-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #111111;
  text-align: left;
  gap: 1rem;
  transition: color 0.2s ease;
}

.blog-faq-question:hover {
  color: #111111;
}

.blog-faq-question:focus {
  outline: none;
}

.blog-faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: #666666;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.blog-faq-item.active .blog-faq-icon {
  transform: rotate(45deg);
}

.blog-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
}

.blog-faq-item.active .blog-faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.blog-faq-answer p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 768px) {
  .blog-faq-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
