/* ==========================================================================
   Base Styles & Layout
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  z-index: 1000;
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--blue-fisagency);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  color: #4B5563;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #2D5BFF;
}

.nav-link.active {
  color: #2D5BFF;
}

.nav-button {
  background: #2D5BFF;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.nav-button:hover {
  background: #1D4ED8;
}

/* ==========================================================================
   Blog Header
   ========================================================================== */
.blog-header {
  padding: 64px 0;
  background: linear-gradient(135deg, #F8FAFF 0%, #F0F5FF 100%);
}

.header-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.blog-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.header-subtitle {
  font-size: 20px;
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb-container {
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
}

.breadcrumb {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb-item {
  color: #666666;
  text-decoration: none;
}

.breadcrumb-separator {
  color: #999999;
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.category-tag {
  font-size: 13px;
  color: #2D5BFF;
  background: rgba(45, 91, 255, 0.1);
  padding: 6px 12px;
  border-radius: 16px;
  text-decoration: none;
}

.publish-date,
.reading-time {
  color: #666666;
  font-size: 14px;
}

/* Article Title */
.article-title {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 24px;
  max-width: 800px;
}

.article-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 0;
  max-width: 800px;
}

/* Main Content Layout */
.blog-content {
  padding: 80px 0;
  background: #FAFAFA;
}

.content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

/* Sidebar */
.content-sidebar {
  position: sticky;
  top: 40px;
}

.table-of-contents {
  margin-bottom: 48px;
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 24px;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toc-link {
  font-size: 14px;
  color: #666666;
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.toc-link:hover,
.toc-link.active {
  color: #2D5BFF;
}

/* Share Section */
.share-section {
  display: none;
}

/* Article Content */
.article-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 720px;
  color: #374151;
}

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin: 48px 0 24px;
  scroll-margin-top: 100px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 32px 0 16px;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 12px;
  color: #374151;
}

/* Code Blocks */
.article-content pre {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
  overflow-x: auto;
}

.article-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* Blockquotes */
.article-content blockquote {
  border-left: 4px solid #2D5BFF;
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: #4B5563;
}

/* Images */
.article-content figure {
  margin: 40px 0;
}

.article-content img {
  width: 100%;
  border-radius: 12px;
}

.article-content figcaption {
  font-size: 14px;
  color: #6B7280;
  text-align: center;
  margin-top: 12px;
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
  background: #F9FAFB;
  border-top: 1px solid #E5E7EB;
}

.newsletter-container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.newsletter-description {
  font-size: 16px;
  color: #4B5563;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 16px;
  color: #111827;
}

.newsletter-button {
  padding: 12px 24px;
  background: #2D5BFF;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-button:hover {
  background: #1D4ED8;
}

/* Table Styles */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}

.article-content th {
  background: #F9FAFB;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #111827;
}

.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid #E5E7EB;
  color: #374151;
}

/* Links */
.article-content a {
  color: #2D5BFF;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.article-content a:hover {
  border-color: #2D5BFF;
}

/* Print Styles */
@media print {
  .blog-header {
    padding: 40px 0;
  }
  
  .content-sidebar,
  .newsletter-section,
  .reading-progress {
    display: none;
  }
  
  .article-content {
    max-width: none;
  }
  
  .article-content a {
    color: #111827;
    border-bottom: none;
  }
}

/* Related Articles */
.related-articles {
  padding: 80px 0;
  background: #FFFFFF;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 40px;
}

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #F0F0F0;
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  background: #2D5BFF;
  width: 0;
  transition: width 0.1s ease;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 200px 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .blog-header {
    padding: 40px 0;
  }
  
  .article-title {
    font-size: 32px;
  }
  
  .article-subtitle {
    font-size: 18px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .content-sidebar {
    display: none;
  }
}

/* Blog Index Layout */
.blog-index {
  padding: 80px 0;
  background: #FAFAFA;
}

/* Blog Search */
.blog-search {
  margin-bottom: 48px;
}

.search-input {
  width: 100%;
  padding: 16px 24px;
  padding-left: 56px;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: 12px;
  font-size: 16px;
  color: #1A1A1A;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: #2D5BFF;
  outline: none;
}

/* Blog Categories */
.blog-categories {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #EEEEEE;
}

.category-filter {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #666666;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-filter:hover,
.category-filter.active {
  background: #2D5BFF;
  color: #FFFFFF;
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.article-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 32px;
  background: #FFFFFF;
  border-radius: 16px;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card-image {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.3;
  margin: 0;
}

.article-card-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

/* Article Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.metric-card {
  padding: 24px;
  background: #FFFFFF;
  border-radius: 12px;
  text-align: center;
}

.metric-value {
  font-size: 32px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: #666666;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

.article-card:nth-child(2) {
  animation-delay: 0.1s;
}

.article-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* Additional Responsive Styles */
@media screen and (max-width: 1024px) {
  .article-card {
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }
}

@media screen and (max-width: 768px) {
  .article-card {
    grid-template-columns: 1fr;
  }
  
  .blog-categories {
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Content Sections */
.content-section {
  margin-bottom: 80px;
}

.section-label {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  color: #2D5BFF;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.section-intro {
  font-size: 20px;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 48px;
  max-width: 720px;
}

/* Solution Cards */
.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.solution-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #E5E7EB;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 91, 255, 0.1);
  border-radius: 12px;
}

.card-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.card-content p {
  color: #4B5563;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6B7280;
  margin-bottom: 12px;
}

.feature-list li::before {
  content: "•";
  color: #2D5BFF;
}

/* Metrics Dashboard */
.metrics-dashboard {
  background: #F9FAFB;
  border-radius: 16px;
  padding: 40px;
  margin-top: 48px;
}

.metric-card.primary {
  background: #111827;
  color: #FFFFFF;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.metric-header {
  text-align: center;
  margin-bottom: 24px;
}

.metric-header .metric-label {
  color: #E5E7EB;
}

.metric-header .metric-value {
  font-size: 48px;
  font-weight: 600;
  color: #FFFFFF;
}

.metric-comparison {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  border-radius: 8px;
}

.metric-comparison .label {
  font-size: 14px;
  color: #E5E7EB;
  display: block;
  margin-bottom: 4px;
}

.metric-comparison .value {
  color: #059669;
  font-weight: 500;
  font-size: 18px;
}

.metric-comparison .arrow {
  color: #E5E7EB;
  font-size: 24px;
}

/* Takeaways List */
.takeaways-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.takeaway-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}

.takeaway-number {
  font-size: 24px;
  font-weight: 600;
  color: #2D5BFF;
}

.takeaway-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.takeaway-content p {
  color: #4B5563;
  margin: 0;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
  .solution-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .solution-cards {
    grid-template-columns: 1fr;
  }
  
  .metrics-dashboard {
    padding: 24px;
  }
  
  .takeaway-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .section-intro {
    font-size: 18px;
  }
}

/* Code Formatting */
.code-block {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

/* Callouts */
.callout {
  background: #F3F4F6;
  border-left: 4px solid #2D5BFF;
  padding: 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}

.callout-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}

/* Interactive Elements */
.interactive-demo {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
  background: #FFFFFF;
}

/* Results Section */
.results-section {
  background: #F9FAFB;
  border-radius: 16px;
  padding: 40px;
  margin: 48px 0;
}

.result-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.result-value {
  font-size: 36px;
  font-weight: 600;
  color: #111827;
}

.result-label {
  font-size: 16px;
  color: #6B7280;
}

/* Step-by-Step Guide */
.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.step-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 32px;
  counter-increment: step;
}

.step-item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: #2D5BFF;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}

.data-table th {
  background: #F9FAFB;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #111827;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #E5E7EB;
  color: #374151;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Interactive Hover States */
.interactive-element {
  transition: all 0.2s ease;
}

.interactive-element:hover {
  transform: scale(1.02);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .article-content {
    color: #E5E7EB;
  }
  
  .code-block {
    background: #1F2937;
    color: #E5E7EB;
  }
  
  .callout {
    background: #374151;
    border-left-color: #60A5FA;
  }
  
  .data-table th {
    background: #1F2937;
    color: #F9FAFB;
  }
  
  .data-table td {
    border-color: #374151;
    color: #E5E7EB;
  }
}

/* Case Study Specific Styles */
.case-study-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 0;
}

.case-study-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  font-size: 14px;
}

/* Key Metrics Display */
.key-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.key-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-label {
  font-size: 12px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 32px;
  font-weight: 500;
  color: #111827;
}

/* Results Comparison */
.results-comparison {
  background: #F9FAFB;
  border-radius: 16px;
  padding: 32px;
  margin: 48px 0;
}

.comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #E5E7EB;
  position: relative;
}

.comparison-label {
  font-weight: 500;
  color: #374151;
}

.comparison-values {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.comparison-values .value {
  font-size: 18px;
  font-weight: 500;
  color: #374151;
}

/* Remove the orange arrows */
.comparison-values::after,
.comparison-values::before {
  display: none;
}

/* Timeline Styles */
.timeline {
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-phase {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #E5E7EB;
  transition: transform 0.3s ease;
}

.timeline-phase:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.phase-number {
  color: #2D5BFF;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phase-duration {
  color: #6B7280;
  font-size: 14px;
}

.phase-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.phase-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.phase-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #374151;
  margin-bottom: 12px;
  font-size: 16px;
}

.phase-checklist li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(45, 91, 255, 0.1);
  border-radius: 50%;
  color: #2D5BFF;
  font-size: 12px;
}

.phase-result {
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.result-value {
  display: block;
  font-size: 32px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.result-label {
  font-size: 14px;
  color: #6B7280;
}

/* Impact Section */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.impact-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  border: 1px solid #E5E7EB;
  transition: transform 0.2s ease;
}

.impact-card:hover {
  transform: translateY(-4px);
}

.impact-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.impact-metric {
  font-size: 36px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 14px;
  color: #6B7280;
}

/* Refined CTA Box */
.cta-box {
  background: #F9FAFB;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin: 64px 0;
}

.cta-box h3 {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.cta-box p {
  color: #4B5563;
  margin-bottom: 32px;
  font-size: 16px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.primary-button {
  background: #2D5BFF;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.primary-button:hover {
  background: #1D4ED8;
}

.secondary-button {
  background: #FFFFFF;
  color: #2D5BFF;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid #2D5BFF;
  font-weight: 500;
  transition: all 0.2s ease;
}

.secondary-button:hover {
  background: rgba(45, 91, 255, 0.1);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    padding-left: 24px;
  }
  
  .timeline-content {
    padding: 24px;
  }
  
  .cta-box {
    padding: 32px 24px;
  }
  
  .cta-actions {
    flex-direction: column;
  }
}

/* Related Content Section */
.related-content {
  padding: 80px 0;
  background: #F9FAFB;
}

.related-header {
  margin-bottom: 48px;
}

.related-header h2 {
  font-size: 32px;
  font-weight: 600;
  color: #111827;
  margin-top: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.related-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.metrics-row {
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
  margin-top: 24px;
}

/* Enhanced CTA Section */
.cta-section {
  padding: 96px 0;
  background: #F9FAFB;
}

.cta-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
  background: #F9FAFB;
  border-radius: 24px;
  padding: 64px;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 600;
  color: #111827;
  margin: 16px 0 24px;
}

.cta-content p {
  font-size: 18px;
  color: #4B5563;
  margin-bottom: 32px;
}

.cta-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
  padding: 32px;
  background: #FFFFFF;
  border-radius: 16px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.text-button {
  color: #4B5563;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.text-button:hover {
  color: #111827;
}

.primary-button .icon {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  fill: currentColor;
}

/* Testimonial */
.cta-testimonial {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
}

.cta-testimonial blockquote {
  font-size: 20px;
  line-height: 1.6;
  color: #111827;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-weight: 600;
  color: #111827;
}

.author-role {
  font-size: 14px;
  color: #6B7280;
}

/* Newsletter Section Refinements */
.newsletter-wrapper {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 32px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.newsletter-content p {
  font-size: 18px;
  color: #4B5563;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.newsletter-input {
  flex: 1;
  padding: 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.newsletter-input:focus {
  border-color: #2D5BFF;
  outline: none;
}

.newsletter-button {
  background: #2D5BFF;
  color: #FFFFFF;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-button:hover {
  background: #1D4ED8;
}

.newsletter-privacy {
  font-size: 14px;
  color: #6B7280;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .cta-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }
}

@media screen and (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }

  .cta-metrics {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .cta-content h2 {
    font-size: 28px;
  }
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #2D5BFF 0%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Animated Icons */
.animated-icon {
  transition: transform 0.3s ease;
}

.solution-card:hover .animated-icon {
  transform: scale(1.1);
}

.icon-path {
  stroke: #2D5BFF;
  stroke-width: 2;
  fill: none;
  transition: all 0.3s ease;
}

.solution-card:hover .icon-path {
  stroke: #1D4ED8;
  stroke-dasharray: 100;
  stroke-dashoffset: 200;
  animation: drawPath 1.5s ease forwards;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

/* Smooth Timeline Reveal */
.timeline-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.timeline-item.aos-animate {
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced CTA Hover */
.cta-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Metric Counter Animation */
.metric-value {
  transition: color 0.3s ease;
}

.metric-value.animated {
  color: #2D5BFF;
}

/* Update metrics styling for better visibility */
.metric-trend {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-trend .value {
  font-size: 24px;
  font-weight: 600;
  color: #111827; /* Darker color for better visibility */
  margin-bottom: 4px;
}

.metric-trend .change {
  font-size: 14px;
  color: #374151; /* Darker gray for better visibility */
}

/* Update other metric values */
.metrics-dashboard .metric-card {
  background: #FFFFFF;
  padding: 24px;
  border-radius: 12px;
}

.metrics-dashboard .metric-label {
  font-size: 14px;
  color: #374151; /* Darker gray */
  margin-bottom: 8px;
}

.metrics-dashboard .metric-value {
  font-size: 24px;
  font-weight: 600;
  color: #111827; /* Darker for better visibility */
}

/* Case Studies Index Specific Styles */
.case-studies-hero {
  padding: 120px 0;
  background: linear-gradient(135deg, #F8FAFF 0%, #F0F5FF 100%);
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.case-study-card {
  display: block;
  margin-bottom: 48px;
  border-radius: 24px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-visual {
  height: 320px;
  position: relative;
  overflow: hidden;
}

/* Enhanced Pattern Styles */

/* Marketplace Pattern */
.pattern-grid {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2D5BFF 0%, #1D4ED8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.pattern-grid::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 0%, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%, transparent 100%),
    linear-gradient(0deg, transparent 0%, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%, transparent 100%);
  background-size: 30px 30px;
  animation: gridMove 20s linear infinite;
}

/* Fashion Pattern */
.pattern-waves {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1D4ED8 0%, #2D5BFF 100%);
  overflow: hidden;
}

.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 50% 50%, transparent 45%, rgba(255,255,255,0.1) 50%, transparent 55%);
  background-size: 60px 60px;
  animation: waveRotate 15s linear infinite;
}

.wave:nth-child(2) {
  animation-delay: -5s;
  opacity: 0.5;
}

.wave:nth-child(3) {
  animation-delay: -10s;
  opacity: 0.3;
}

/* Beauty Pattern */
.pattern-circles {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  overflow: hidden;
}

.circle {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}

.circle:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseCircle 3s ease-in-out infinite;
}

.circle:nth-child(2) {
  width: 180px;
  height: 180px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseCircle 3s ease-in-out infinite 1s;
}

.circle:nth-child(3) {
  width: 240px;
  height: 240px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseCircle 3s ease-in-out infinite 2s;
}

/* Enhanced Animations */
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

@keyframes waveRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseCircle {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
}

/* Visual Overlays */
.visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(2px);
}

/* Results Section Refinements */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.result-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #E5E7EB;
}

.result-card.primary {
  background: linear-gradient(135deg, #2D5BFF 0%, #1D4ED8 100%);
  color: #FFFFFF;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.result-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: inherit;
}

.result-change {
  text-align: right;
}

.change-value {
  display: block;
  font-size: 24px;
  font-weight: 600;
}

.change-label {
  font-size: 14px;
  opacity: 0.8;
}

.result-comparison {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.before, .after {
  text-align: center;
}

.before .label, .after .label {
  display: block;
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.before .value, .after .value {
  font-size: 24px;
  font-weight: 600;
}

.results-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metric-trend {
  text-align: center;
}

.trend-value .value {
  display: block;
  font-size: 32px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.trend-value .change {
  font-size: 14px;
  color: #6B7280;
}

.trend-chart {
  margin-top: 16px;
  height: 4px;
  background: #F3F4F6;
  border-radius: 2px;
  overflow: hidden;
}

.trend-line {
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation: growLine 1.5s ease-out forwards;
}

.trend-line.positive {
  background: #059669;
}

/* Achievement List */
.achievement-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.achievement-item {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #E5E7EB;
}

.achievement-icon {
  font-size: 24px;
  margin-bottom: 16px;
}

.achievement-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.achievement-content p {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

@keyframes growLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .results-metrics,
  .achievement-list {
    grid-template-columns: 1fr;
  }
}

/* Related Card Visual Styles */
.related-card .card-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}

/* Fashion Pattern Enhancements */
.related-card .pattern-waves {
  background: linear-gradient(135deg, #1D4ED8 0%, #2D5BFF 100%);
}

.related-card .wave {
  opacity: 0.3;
  transform-origin: center;
}

.related-card:hover .wave {
  animation: waveRotateHover 12s linear infinite;
}

/* Beauty Pattern Enhancements */
.related-card .pattern-circles {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.related-card:hover .circle {
  animation-duration: 2s;
}

/* Visual Overlay Enhancement */
.related-card .visual-overlay {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.3s ease;
}

.related-card:hover .visual-overlay {
  backdrop-filter: blur(1px);
}

@keyframes waveRotateHover {
  0% { transform: rotate(0deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1.1); }
}

/* Blog Index Specific Styles */
.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 64px 0;
}

.case-study-card {
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.case-study-card .card-content {
  padding: 32px;
}

.case-study-card h2 {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin: 16px 0;
}

.case-study-card p {
  color: #6B7280;
  margin-bottom: 24px;
}

/* Responsive Adjustments */
@media screen and (min-width: 768px) {
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .case-studies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
} 