/* =========================
   HERO & BLOG DETAILS
========================= */
.hero-blog-details {
  padding: 0px 65px 20px 65px;
  /*background: url("../img/home-assets/pattern.png") no-repeat;*/
  background-size: cover;
  background-position: left 0px top -150px;
  color: #333;
}

.blog-details-section {
  padding: 0px 65px;
}

/* Breadcrumb */
.blog-breadcrumb {
  margin-top: 20px;
  font-size: 1em;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Blog Title & Meta */
.blog-title {
  margin-top: 16px;
  margin-bottom: 8px;
}

.blog-title h1 {
  color: #4C39DD;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 47px;
}

.blog-meta {
  display: flex;
 flex-direction: column;
  gap: 10px;
  color: #888;
  font-size: 0.95em;
  margin-top: 20px;
  margin-bottom: 30px;
}
.blog-meta span i{
    color: #4C39DD !important;
}
.blog-meta span,
.blog-meta-text {
  color: #555;
  font-weight: 400;
  padding-left: 4px;
}

/* Blog Main Image */
.blog-image {
  margin-bottom: 32px;
}

.blog-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  object-fit: cover;
  height: auto;
  max-height: 400px;
}

/* Blog Content & Sidebar */
.blog-content-flex {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.blog-content {
  flex: 3;
}

.blog-content h2 {
  font-size: 1.3em;
  font-weight: 700;
  margin: 16px 0 8px 0;
}

.blog-content p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 18px;
}

.blog-sidebar {
  flex: 1;
  position: sticky;
  top: 40px;
  align-self: flex-start;
  height: fit-content;
  z-index: 2;
  border-radius: 12px;
  padding: 24px;
}

/* Sidebar Sections */
.sidebar-section {
  margin-bottom: 32px;
  margin-top: 30px;
}

.sidebar-section h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 30px;
}

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

.latest-posts li {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.latest-posts a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.latest-post-thumb {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
}

.latest-posts span {
  font-size: 1em;
  color: #222;
  font-weight: 500;
}

/* Social Icons   */
 /* =========================================update here  this social-icons name confict to footer icon  ================================================= */
.sidebar-section .social-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.sidebar-section .social-icons a {
  color: #97a2b2;
  font-size: 1.1em;
  background: #f3f3fa;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.sidebar-section .social-icons a:hover {
  background: #4C39DD;
  color: #fff;
}

/* =========================
   RELATED UPDATES / CAROUSEL
========================= */
.related-updates {
  margin: 40px 0 0 0;
  padding-bottom: 70px;
  overflow: hidden;
}

.related-updates-header {
  margin-bottom: 40px;
}

.related-updates-header .text-block {
  max-width: 60%;
}

.related-updates-header h2 {
  color: #4C39DD;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: left;
}

.related-updates-header p {
  color: #444;
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0;
  text-align: left;
}

/* Carousel Controls & Dots */
.related-updates-controls {
  gap: 12px;
}

.related-updates-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.related-updates-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.related-updates-dot.active {
  background: #4C39DD;
  transform: scale(1.2);
}

/* Carousel Buttons */
.related-updates-btn.ru-next-btn,
.related-updates-btn.ru-prev-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #4C39DD;
  background: transparent;
  color: #4C39DD;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 18px;
}

.related-updates-btn.ru-prev-btn {
  background: #4C39DD;
  color: #fff;
}

/* Carousel Track & Cards */
#ru-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  will-change: transform;
}

#ru-carousel .insight-card {
  flex: 0 0 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px; /* reduced spacing above Read More */
  box-sizing: border-box;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-2px);
}

.insight-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.insight-card .tag {
  font-size: 0.95em;
  color: #4C39DD;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
}

.insight-card h4 {
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.insight-card p {
  font-size: 1em;
  color: #555;
  margin-bottom: 12px;
  flex: 1;
}

.insight-card .read-more {
  color: #4C39DD;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  margin-top: 6px; /* reduced spacing */
}

.insight-card .read-more:hover {
  text-decoration: underline;
}

/* Desktop & Mobile Arrows */
.desktop-only {
  display: flex;
}
.mobile-only {
  display: none;
}

/* =========================
   RESPONSIVE CARDS
========================= */

/* Tablet ≤ 900px */
@media (max-width: 900px) {
  .hero, .blog-details-section {
    padding-left: 2.5em;
    padding-right: 2.5em;
  }

  .blog-title h1 {
    font-size: 2.2em;
    padding-right: 1em;
  }
  .blog-content h2 {
    font-size: 1.15em;
    margin: 12px 0 6px 0;
  }
  .blog-content p {
    font-size: 1em;
  }

 
  .blog-content-flex {
    flex-direction: column;
    gap: 1em;
    margin: 0;
    padding: 0;
  }
  .blog-content, .blog-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
  }
 .blog-sidebar {
    position: static;
    top: auto;
    padding:  0;
  }


  /* Carousel 2 cards */
  #ru-carousel .insight-card {
    flex: 0 0 calc((100% - 1.125em) / 2);
    max-width: calc((100% - 1.125em) / 2);
  }

  .insight-card h4 {
    font-size: 1.05em;
  }
  .insight-card p {
    font-size: 0.95em;
  }
}

/* Mobile ≤ 576px */
@media (max-width: 576px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    margin: 1rem 0;
  }
.hero-blog-details{
padding: 15px;
}

  .hero, .blog-details-section {
    padding-left: 1em;
    padding-right: 1em;
  }


  /* Breadcrumb */
.blog-breadcrumb {
  margin-top: 20px;
  font-size:12px ;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 15px;
}
  .blog-title h1 {
    font-size: 1.65em;
    margin-bottom: 12px;
    padding-left: 15px;
    margin: 0;
  }

  .blog-meta {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding-left: 15px;
  }
  .blog-content{
    margin-top:30px ;
  }

  .blog-content h2 {
    font-size: 1.05em;
    margin: 8px 0 4px 0;
  }
  .blog-content p {
    font-size: 0.95em;
    line-height: 1.6;
  }
  .blog-content img {
    width: 100%;
 
  max-height: 250px;
  }

  .blog-image img {
  width: 100%;
 
  max-height: 250px;
}
  .blog-image {
    margin-bottom: 0;
  }

  .blog-content-flex {
    flex-direction: column;
    gap: 1em;
    margin: 0;
    padding: 0;
  }

  .blog-content, .blog-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .blog-sidebar {
    position: static;
    top: auto;
    padding: 0;
  }

  /* Carousel: 1 card */
  #ru-carousel {
    gap: 1em;
  }
  #ru-carousel .insight-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .related-updates {
  margin:0;
 padding-bottom: 10px;
  overflow: hidden;
}
  .related-updates-header .text-block {
    max-width: 100%;
    text-align: left;
  }
  .related-updates-header h2{
     text-align: left;
     font-size: 1.6rem;
  }
 
  .related-updates-header p {
    text-align: left;
    font-size: 1rem;
  }

  .insight-card img {
  width: 100%;
  height: 250px;
 
}

  .related-updates-controls {
    justify-content: center;
  }

  .insight-card h4 {
    font-size: 1em;
  }
  .insight-card p {
    font-size: 0.9em;
  }
  .insight-card .read-more {
  
  margin-top:0 !important; /* reduced spacing */
}

}


/* ================================================================== big screen====================================== ===== */


/* Large devices ≥1400px */
@media (min-width: 1400px) {

  .blog-title h1 { font-size: 3.5rem; }
  .blog-meta { flex-direction: row; gap: 20px; font-size: 1em; }
  .blog-image img { max-height: 500px; }
  .blog-content-flex { gap: 50px; }
  .blog-content h2 { font-size: 1.6em; }
  .blog-content p { font-size: 1.15em; line-height: 1.8; }
  .blog-sidebar { padding: 32px; }
  .sidebar-section h3 { font-size: 1.25em; margin-bottom: 35px; }
  .latest-post-thumb { width: 80px; height: 80px; }
  .sidebar-section .social-icons a { width: 42px; height: 42px; font-size: 1.2em; }

  .insight-card img { height: 350px; }
  .insight-card h4 { font-size: 1.3em; }
  .insight-card p { font-size: 1.05em; }
  .insight-card .read-more { font-size: 1em; margin-top: 8px; }
}



/* Ultra-large / 4K screens  */
@media (min-width: 1900px) {
  
  .blog-title h1 { font-size: 4.5rem; }
  .blog-meta { gap: 30px; font-size: 1.05em; }
  .blog-image img { max-height: 600px; }
  .blog-content-flex { gap: 70px; }
  .blog-content h2 { font-size: 2em; }
  .blog-content p { font-size: 1.25em; }
  .blog-sidebar { padding: 50px; }
  .sidebar-section h3 { font-size: 1.5em; }
  .latest-post-thumb { width: 100px; height: 100px; }
  .sidebar-section .social-icons a { width: 50px; height: 50px; font-size: 1.4em; }
 
  .insight-card img { height: 450px; }
  .insight-card h4 { font-size: 1.5em; }
  .insight-card p { font-size: 1.15em; }
  .insight-card .read-more { font-size: 1.1em; }
}
