/* ============================================
   BLOG SINGLE POST - TWO COLUMN LAYOUT WITH STICKY SIDEBAR
   Professional, Modern Design matching Case Studies
   ============================================ */

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-up-hor-left {
  0% {
    transform: scaleX(0.4);
    transform-origin: 0% 0%;
  }
  100% {
    transform: scaleX(1);
    transform-origin: 0% 0%;
  }
}

@keyframes scale-up-br {
  0% {
    transform: scale(0.5);
    transform-origin: 100% 100%;
    opacity: 0;
  }
  100% {
    transform: scale(1);
    transform-origin: 100% 100%;
    opacity: 1;
  }
}

/* Page Container */
.blog-single-page {
  padding-top: 0;
  padding-bottom: 6vw;
  background: #f4f8fc;
}

/* Hero Section - Professional Left-Aligned */
.blog-hero-new {
  position: relative;
  min-height: 60vh;
  width: 100%;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 8vw 0 6vw 0;
}

.blog-hero-content-wrapper {
  position: relative;
  max-width: 80vw;
  margin: 0 auto;
  z-index: 2;
  width: 100%;
}

.blog-hero-text-content {
  max-width: 75%;
  text-align: left;
}

.blog-hero-category {
  display: inline-block;
  font-family: "markProMedium", sans-serif;
  font-size: 0.9vw;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, #345cad 0%, #1ed197 100%);
  padding: 0.5vw 1.2vw;
  border-radius: 0.3vw;
  margin-bottom: 1.5vw;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.blog-hero-title-new {
  position: relative;
  font-family: "markProBold", system-ui, sans-serif;
  font-size: 3.5vw;
  line-height: 1.2;
  letter-spacing: -0.03vw;
  margin: 0 0 1.5vw 0;
  color: #222;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.blog-hero-meta {
  font-family: "markProRegular", sans-serif;
  font-size: 1vw;
  display: flex;
  gap: 1vw;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.blog-meta-divider {
  color: #ccc;
}

/* Gradient text for author name and read time */
.blog-hero-meta span {
  background-image: linear-gradient(60deg, #3d3393 0%, #2b76b9 37%, #2cacd1 65%, #35eb93 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.blog-hero-meta .blog-meta-divider {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #ccc;
  color: #ccc;
}

.blog-hero-seor {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 20vh;
  width: auto;
  z-index: 1;
  opacity: 0.5;
  animation: scale-up-br 0.8s ease-out both;
}

.blog-hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-bottom: 1px solid #e0e0e0;
  z-index: 3;
}

/* Main Container - Two Column Layout */
.blog-container {
  max-width: 80vw;
  margin: 0 auto;
  padding-top: 4vw;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3vw;
  align-items: start;
}

/* Sidebar - Sticky Related Articles */
.blog-sidebar {
  position: sticky;
  top: 2vw;
  background: #fff;
  border-radius: 1vw;
  padding: 2vw;
  box-shadow: 0 2px 12px rgba(40,84,162,0.08);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.blog-sidebar-title {
  font-family: "markProBold", sans-serif;
  font-size: 1.3vw;
  color: #345cad;
  margin: 0 0 1.5vw 0;
  padding-bottom: 0.8vw;
  border-bottom: 2px solid #f0f0f0;
}

.sidebar-article {
  margin-bottom: 1.5vw;
  padding-bottom: 1.5vw;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-article:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-article-link {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

.sidebar-article-link:hover {
  transform: translateX(5px);
}

.sidebar-article-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 0.5vw;
  margin-bottom: 0.8vw;
}

.sidebar-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sidebar-article-link:hover .sidebar-article-image img {
  transform: scale(1.05);
}

.sidebar-article-title {
  font-family: "markProMedium", sans-serif;
  font-size: 0.95vw;
  line-height: 1.4;
  color: #222;
  margin: 0 0 0.5vw 0;
}

.sidebar-article-date {
  font-family: "markProRegular", sans-serif;
  font-size: 0.8vw;
  color: #999;
}

/* Main Content Area */
.blog-main-content {
  min-width: 0;
}

/* Featured Image - Smaller Size */
.blog-featured-image {
      /* width: 100%; */
    max-height: 400px;
    overflow: hidden;
    /* border-radius: 1vw; */
    /* border-radius: 1vw 1vw 1vw 1vw; */
    /* margin-bottom: 3vw; */
    /* box-shadow: 0 4px 20px rgba(40, 84, 162, 0.12); */
    animation: fadeInUp 0.8s ease-out 0.5s both;
    /* width: clamp(100%, 100% + 30vw, 143%); */
    max-width: 80vw;
    margin: 0 auto;
    padding-top: 1vw;
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content Section - Card Style */
.blog-content-section {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(60deg, #3d3393 0%, #2b76b9 37%, #2cacd1 65%, #35eb93 100%) border-box;
  border-radius: 1vw;
  padding: 3vw;
  margin-bottom: 3vw;
  box-shadow: 0 2px 12px rgba(40,84,162,0.08);
  border: 1px solid transparent; /* thin gradient border like privacy policy */
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.blog-article-content {
  font-family: "markProRegular", sans-serif;
  font-size: 1.15vw;
  line-height: 1.8;
  color: #333;
}

.blog-article-content h2 {
  font-family: "markProBold", sans-serif;
  font-size: 2vw;
  color: #222;
  margin: 2.5vw 0 1.2vw 0;
  position: relative;
  padding-bottom: 0.8vw;
}

.blog-article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4vw;
  height: 0.2vw;
  background: linear-gradient(90deg, #345cad 0%, #1ed197 100%);
  border-radius: 2px;
}

.blog-article-content h3 {
  font-family: "markProMedium", sans-serif;
  font-size: 1.5vw;
  color: #222;
  margin: 2vw 0 1vw 0;
}

.blog-article-content p {
  margin: 0 0 1.5vw 0;
}

.blog-article-content ul,
.blog-article-content ol {
  margin: 0 0 1.5vw 1.8vw;
  padding-left: 0;
  list-style: none;
}

.blog-article-content li {
  margin-bottom: 0.8vw;
  line-height: 1.7;
  position: relative;
}

.blog-article-content ul li::before,
.blog-article-content ol li::before {
  content: '✓';
  font-family: "markProBold", sans-serif;
  font-size: 1.5vw;
  color: #1ed197;
  display: inline-block;
  margin-right: 0.8vw;
}

/* All lists use the same green tick icon for points */

.blog-article-content li:hover {
  transform: none;
  box-shadow: none;
}

.blog-article-content li strong {
  display: inline;
  font-family: "markProBold", sans-serif;
  font-size: 1.2vw;
  color: #222;
  margin-right: 0.3vw;
}

.blog-article-content li::marker {
  display: none;
}

.blog-article-content strong {
  font-family: "markProBold", sans-serif;
  color: #111;
}

.blog-article-content a {
  color: #345cad;
  text-decoration: none;
  font-family: "markProMedium", sans-serif;
  transition: all 0.3s ease;
  position: relative;
}

.blog-article-content a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #345cad 0%, #1ed197 100%);
  transition: width 0.3s ease;
}

.blog-article-content a:hover::after {
  width: 100%;
}

/* Blockquote Styling */
.blog-article-content blockquote {
  background: #f8fafb;
  border-left: 0.3vw solid #345cad;
  padding: 1.5vw 2vw;
  margin: 2vw 0;
  border-radius: 0.5vw;
  font-style: italic;
}

/* CTA Section - Card Style */
.blog-cta-section {
  background: linear-gradient(135deg, #345cad 0%, #1ed197 100%);
  color: #fff;
  padding: 3vw;
  border-radius: 1vw;
  text-align: center;
  margin-bottom: 3vw;
  box-shadow: 0 4px 20px rgba(40,84,162,0.15);
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.blog-cta-section {
    width: clamp(100%, 100% + 30vw, 143%);
}

.blog-cta-section h2 {
  font-family: "markProBold", sans-serif;
  font-size: 2vw;
  margin: 0 0 1vw 0;
  color: #fff;
}

.blog-cta-section p {
  font-family: "markProRegular", sans-serif;
  font-size: 1.2vw;
  margin: 0 0 2vw 0;
  opacity: 0.95;
}

.blog-cta-button {
  display: inline-block;
  font-family: "markProMedium", sans-serif;
  font-size: 1.1vw;
  padding: 1vw 2.5vw;
  background: #fff;
  color: #345cad;
  border-radius: 0.5vw;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blog-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* FAQ Section - Card Style */
.blog-faq-section {
  background: #fff;
  border-radius: 1vw;
  padding: 3vw;
  box-shadow: 0 2px 12px rgba(40,84,162,0.08);
  animation: fadeInUp 0.8s ease-out 0.8s both;
  width: clamp(100%, 100% + 30vw, 143%);
}

.faq-title {
  font-family: "markProBold", sans-serif;
  font-size: 2vw;
  color: #345cad;
  margin: 0 0 2vw 0;
  position: relative;
  padding-bottom: 0.8vw;
}

.faq-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4vw;
  height: 0.2vw;
  background: linear-gradient(90deg, #345cad 0%, #1ed197 100%);
  border-radius: 2px;
}

/* FAQ Item Styles */
.faq-item,
.schema-faq-section {
  background: #f8fafb;
  border-radius: 0.5vw;
  margin-bottom: 1vw;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover,
.schema-faq-section:hover {
  box-shadow: 0 2px 8px rgba(40,84,162,0.1);
}

.faq-question,
.schema-faq-question {
  font-family: "markProMedium", sans-serif;
  font-size: 1.2vw;
  color: #222;
  padding: 1.5vw 2vw;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover,
.schema-faq-question:hover {
  color: #345cad;
}

.faq-question::after,
.schema-faq-question::after {
  content: '+';
  font-size: 1.5vw;
  color: #345cad;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after,
.schema-faq-section.active .schema-faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer,
.schema-faq-answer {
  font-family: "markProRegular", sans-serif;
  font-size: 1.05vw;
  line-height: 1.7;
  color: #555;
  padding: 0 2vw 0 2vw;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer,
.schema-faq-section.active .schema-faq-answer {
  max-height: 500px;
  padding: 0 2vw 1.5vw 2vw;
}

/* Related Articles Section - Hidden (moved to sidebar) */
.related-articles-section {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-container {
    grid-template-columns: 1fr;
    max-width: 90vw;
  }

  .blog-sidebar {
    position: static;
    order: 2;
  }

  .blog-main-content {
    order: 1;
  }

  .blog-hero-text-content {
    max-width: 100%;
  }

  .blog-hero-title-new {
    font-size: 5vw;
  }

  .blog-hero-category {
    font-size: 2vw;
  }

  .blog-hero-meta {
    font-size: 2.5vw;
  }

  .blog-sidebar-title {
    font-size: 3vw;
  }

  .sidebar-article-title {
    font-size: 2.5vw;
  }

  .sidebar-article-date {
    font-size: 2vw;
  }

  .blog-article-content {
    font-size: 3vw;
  }

  .blog-article-content h2 {
    font-size: 4.5vw;
  }

  .blog-article-content h3 {
    font-size: 3.5vw;
  }

  .blog-article-content ul,
  .blog-article-content ol {
    grid-template-columns: 1fr;
  }

  .blog-article-content li {
    padding: 4vw;
  }

  .blog-article-content ol li::before {
    font-size: 8vw;
  }

  .blog-article-content ul li::before {
    font-size: 4vw;
  }

  .blog-article-content li strong {
    font-size: 3.5vw;
  }

  .blog-cta-section h2 {
    font-size: 4.5vw;
  }

  .blog-cta-section p {
    font-size: 3vw;
  }

  .blog-cta-button {
    font-size: 3vw;
    padding: 3vw 6vw;
  }

  .faq-title {
    font-size: 4.5vw;
  }

  .faq-question,
  .schema-faq-question {
    font-size: 3vw;
  }

  .faq-answer,
  .schema-faq-answer {
    font-size: 2.8vw;
  }
}

@media (max-width: 768px) {
  .blog-hero-new {
    min-height: 58vh;
    padding: 8vw 0 6vw 0;
  }

  .blog-hero-content-wrapper {
    max-width: 90vw;
  }

  .blog-hero-title-new {
    font-size: 7vw;
  }

  .blog-featured-image {
    max-height: 250px;
  }

  .blog-content-section,
  .blog-cta-section,
  .blog-faq-section {
    padding: 5vw;
  }

  .sidebar-article-image {
    height: 150px;
  }
}
