/* Lines 1-230 are for Case Study Pages */
/* Heading + Description Animation */
.animate-heading,
.animate-description {
  opacity: 0;
  transform: translateY(-20px);
  animation-fill-mode: forwards;
}

.animate-heading {
  animation: fadeSlideDown 0.8s ease-out 0.2s forwards;
}

.animate-description {
  animation: fadeSlideDown 0.8s ease-out 0.6s forwards;
}

@keyframes fadeSlideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-animate-heading,
.delay-animate-description {
  opacity: 0;
  transform: translateY(-20px);
  animation-fill-mode: forwards;
}

.delay-animate-heading {
  animation: fadeSlideDown 0.8s ease-out 2s forwards;
}

.delay-animate-description {
  animation: fadeSlideDown 0.8s ease-out 2.4s forwards;
}

@keyframes fadeSlideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.text-box-blue {
  background-color: #0F90A1;
  width: 80%;
  margin-left: auto; /* push box to the right */
  margin-right: 0;   /* flush with right side of screen */
  padding: 42px;     /* inner space for text */
  border-radius: 0px;
  color: #FFFDF9;
  text-align: left;
  margin-top: 48px;
  margin-bottom: 48px;
  
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.text-box-blue.visible {
  opacity: 1;
  transform: translateX(0);
}

.font-regular {
  font-family: 'Source Sans Pro', regular;
}

.font-script {
  font-family: 'Source Serif Pro', serif;
  font-weight: 600;
  font-style: italic;
}

.text-box {
  margin: 24px auto; /* Top/bottom spacing */
}

.invert-box-row {
  display: flex;
  gap: 12px; /* or whatever space you want between boxes */
  flex-wrap: wrap; /* so it wraps nicely on mobile */
  margin-top: 16px;
  margin left:0; 
}

.invert-box {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background-color: #6F6F6F;
  color: #FFFDF9;
  border: 2px solid #FFFDF9;
  transition: background-color 0.4s ease-in-out, 
              color 0.4s ease-in-out,
              border-color 0.4s ease-in-out;
  font-family: 'Source Serif Pro', serif;
  font-size: 25px;
  font-weight: 600;
  font-style: italic;
  cursor: default;
  text-align: center;
}

.invert-box {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background-color: #6F6F6F;
  color: #FFFDF9;
  border: 2px solid #FFFDF9;     /* added border */
  transition: 
    background-color 0.4s ease-in-out, 
    color 0.4s ease-in-out,
    border-color 0.4s ease-in-out;
  font-family: 'Source Serif Pro', serif;
  font-size: 25px
  font-weight: 600;
  font-style: bold italic;
  cursor: default;
  text-align: center;
}

.invert-box:hover {
  background-color: #FFFDF9;
  color: #6F6F6F;
  border-color: #FFFDF9;         /* invert border color */
}



.hs-richtext {
  background-color: #FFFDF9; /* Replace with your desired color */
}


.gray-box {
  background-color: #6F6F6F; /* dark gray */
  padding: 40px 40px;
}

.nude-box {
  background-color: #FFFDF9; /* light cream */
  padding: 40px 40px 10px 60px;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;              /* space between stacked boxes */
  align-items: flex-start;
  margin-top: 30px;
}

/* White result box */
.result-box {
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 600px; /* ✅ fixed consistent width */
  max-width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


/* Inside left part */
.result-box-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.result-title {
  color: #6F6F6F;
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 500;
  font-family: 'Source Sans Pro', sans-serif;
}

.result-number {
  color: #000;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  font-family: 'Source Serif Pro', serif;
}

.result-tag {
  background-color: #e0e0e0;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
  font-family: 'Source Sans Pro', sans-serif;
  margin-left: 20px;
}

@media (max-width: 768px) {
  .result-box {
    width: 100%;
  }
}

.content-wrapper {
  max-width: 600px;  /* same width as your .result-box */
  margin-left: 40px; /* match the left padding in .gray-box */
}

/* Lines 230- are for Blog Listing and Individual pages */
.horizontal-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #B1B1B1;
  top: 50%;
  transform: translateY(-50%);
}

.red-circle {
  position: absolute;
  left: 100vw; /* Start offscreen to the right */
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #EE2524;
  border-radius: 50%;
  z-index: 1;
  animation: slideInCircle 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes slideInCircle {
  to {
    left: 1100px;
  }
}

.featured-blog-wrapper {
  width: 80%;
  margin-left: 60px;
  margin-right: 0;
  font-family: 'Source Sans Pro', sans-serif;
}

.thumbnail-link {
  display: block;
  text-decoration: none;
}

.featured-thumbnail {
  position: relative;
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.featured-thumbnail:hover {
  transform: scale(1.01);
}

.read-time-badge {
  position: absolute;
  top: 16px;
  left: 20px;
  background: white;
  border-radius: 12px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.badge-dot {
  width: 16px;
  height: 16px;
  background-color: #EE2524;
  border-radius: 50%;
}

.badge-text {
  font-size: 16px;
  color: #333;
}

.overview-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #6F6F6F;
  color: white;
  padding: 12px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  height: 60px;
  overflow: hidden;
}

.featured-thumbnail:hover .overview-bar {
  height: 180px;
  background-color: rgba(111,111,111,0.95);
}

.overview-label {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.overview-summary {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-thumbnail:hover .overview-summary {
  opacity: 1;
}

.featured-title {
  font-size: 28px;
  margin: 20px 0 60px 0;
  color: #333;
}

/* Add these new transition rules to your <style> block or child.css */

.card-title,
.card-author,
.read-time {
  transition: color 0.3s ease; /* Makes text color change smooth */
}

/* If the red dot background color also changes abruptly, add a transition here */
.read-time .red-dot {
  transition: background-color 0.3s ease; /* Makes red dot background color change smooth */
}

/* Your existing .blog-thumbnail-card rules should already have this, just confirming: */
.blog-thumbnail-card {
  /* ... other styles ... */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/*HOMEPAGE code 376-x*/
/*-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------*/
/* --- Hero Content & Text Animation Styles --- */

/* Ensure the main video section allows content to be absolutely positioned within it */
.hero-video-section {
    position: relative; /* Crucial for absolute positioning of hero-content-wrapper */
    /* Add existing styles for your video container here, e.g.: */
    width: 100%;
    height: 100vh; /* Or whatever height your video container has */
    display: flex; /* Allows centering of content */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Important to clip overflowing animated words */
}

/* Optional: If you want a semi-transparent overlay over the video */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 2; /* Adjust z-index based on your video container's z-index */
}


/* Content wrapper for the text and CTA */
.hero-content-wrapper {
    position: relative; /* Or absolute, depending on parent. Relative is often safer with flexbox parent */
    z-index: 3; /* Ensure it's above video and overlay */
    padding: 20px;
    max-width: 900px; /* Limit content width */
    color: #FFFDF9; /* Text color for content over video */
    text-align: center;
}

.hero-title {
    font-family: 'Source Sans Pro', sans-serif; /* Your chosen heading font */
    font-size: 32px; /* Adjust as needed for impact */
    font-weight: 600;
    margin-bottom: 40px; /* Space above CTA */
    line-height: 1.2;
    color: inherit; /* Inherit color from .hero-content-wrapper */
}

.animated-text-prefix {
    display: inline-block; /* Ensures it behaves nicely with animated words */
}

.animated-words {
    display: inline-block; /* Container for words, allows width calculation */
    position: relative;
    vertical-align: top; /* Adjusts vertical alignment if needed */
    height: 32px; /* Set a fixed height based on your font size to prevent layout shifts */
    overflow: hidden; /* Crucial: Hides words that are not active */
}

.word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%); /* Start off-screen below */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out; /* Animation properties */
    white-space: nowrap; /* Prevent words from wrapping */
}

.word.active {
    opacity: 1;
    transform: translateY(0); /* Slide into view */
}

/* Basic CTA Button Styling (if not already global in child.css) */
.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #EE2524; /* Your brand primary color */
  color: #FFFDF9;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border: none; /* If you don't want a border */
}

.cta-button:hover {
  background-color: #D41A1A; /* Darker red on hover */
}


/* Responsive adjustments */
@media (max-width: 991px) { /* Tablet breakpoint */
    .hero-title {
        font-size: 3.5em;
    }
    .animated-words {
        /* Re-evaluate height if font size changes drastically affecting line height */
        height: 1.2em;
    }
}

@media (max-width: 767px) { /* Mobile breakpoint */
    .hero-title {
        font-size: 2.5em;
    }
    .animated-words {
        /* Re-evaluate height if font size changes drastically affecting line height */
        height: 1.2em;
    }
}

/*blog listing copy 2 page*/
/* --- GLOBAL FONT IMPORTS --- */
/* Keep your existing font imports here or ensure they are at the top of child.css */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&family=Source+Serif+Pro:ital@1&display=swap');

/* --- MAIN HEADER STYLES --- */
/* Your existing header styles from previous conversations go here or above these blog styles */

/* --- GENERAL BODY STYLES (FROM INLINE) --- */
body {
  background-color: #FFFDF9;
  overflow-x: hidden; /* Crucial: Prevent horizontal scrolling on the entire page */
}

.font-sans {
  font-family: 'Source Sans Pro', sans-serif;
}
.font-serif {
  font-family: 'Source Serif Pro', serif;
}

/* --- BLOG LISTING SPECIFIC STYLES --- */

/* Blog Heading Section */
.blog-heading-section {
  position: relative;
  padding: 60px 20px 20px; /* Adjust padding for mobile and desktop */
}

.blog-title-main {
  font-size: 52px;
  color: #6F6F6F;
  margin: 0 0 5px 120px; /* DEFAULT FOR DESKTOP: Left aligned with specific left margin */
  max-width: 80%; /* Limit width on larger screens */
  line-height: 1.1;
  text-align: left; /* DEFAULT FOR DESKTOP: Left align */
}

.horizontal-line-wrapper {
    position: relative;
    height: 24px;
    margin: 0 0 10px 120px; /* DEFAULT FOR DESKTOP: Left aligned with specific left margin */
    max-width: 80%; /* Limit width, important for containing the circle */
    /* Ensure no padding on this wrapper itself on desktop, as it affects calculation */
}

/* Assuming .horizontal-line and .red-circle are defined elsewhere or need basic definitions */
.horizontal-line {
  background-color: #6F6F6F;
  height: 2px;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.red-circle {
  width: 14px;
  height: 14px;
  background-color: #EE2524;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%; /* This is what centers it relative to its parent */
  transform: translate(-50%, -50%); /* Keeps it perfectly centered */
  z-index: 2; /* Ensure it's above the line */
}


.blog-subtitle-main {
  font-size: 28px;
  color: #6F6F6F;
  margin: 0 0 0 260px; /* DEFAULT FOR DESKTOP: Left aligned with specific left margin */
  font-weight: 400;
  max-width: 80%;
  line-height: 1.3;
  text-align: left; /* DEFAULT FOR DESKTOP: Left align */
}


/* Latest Release Section */
.latest-release-heading {
  font-size: 32px;
  font-weight: 400;
  color: #6F6F6F;
  font-family:'Source Sans Pro', sans-serif;
  margin: 100px auto 0px; /* DEFAULT FOR DESKTOP: Will be overridden below */
  width: 80%;
  text-align: right; /* DEFAULT FOR DESKTOP: Right align */
}

.featured-thumbnail-section {
  width: 80%;
  height: 300px;
  margin: 20px 0 20px auto; /* DEFAULT FOR DESKTOP: Align right with auto left margin */
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  color: white;
  cursor: pointer;
  overflow: hidden; /* Crucial for containing the read-time-badge if it goes absolute */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.6s ease;
  min-height: 250px;
}

.featured-thumbnail-section:hover {
  transform: scale(1.02);
}

.read-time-badge {
  position: absolute; /* Keep absolute for desktop */
  top: 12px;
  left: 12px;
  background: white;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Source Sans Pro', sans-serif;
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}
.read-time-badge .red-dot {
  width: 8px;
  height: 8px;
  background: #ff0201;
  border-radius: 50%;
  display: inline-block;
  margin-right: 2px;
}
.overview-bar {
  position: relative;
  width: 100%;
  background: #6f6f6f;
  color: white;
  padding: 0 20px;
  border-radius: 0;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.6s ease;
  height: 40px;
  line-height: 40px;
  user-select: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.overview-label {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 20px;
  white-space: nowrap;
  margin-top: 20px;
  margin-bottom: 8px;
  pointer-events: none;
}
.summary-text {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease, max-height 0.6s ease;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 20px;
  font-family: 'Source Sans Pro', sans-serif;
  line-height: 1.4;
}
.featured-thumbnail-section:hover .overview-bar {
  height: auto;
  background: rgba(111, 111, 111, 0.85);
  padding: 16px 20px;
  line-height: normal;
  justify-content: flex-start;
}

.featured-thumbnail-section:hover .overview-bar .summary-text {
  opacity: 1;
  max-height: 100px;
}

.featured-thumbnail-section:hover .overview-bar .overview-label {
  opacity: 1;
  margin-top: 10px;
}
.blog-title.blog-featured-title {
  width: 80%;
  margin: 0 0 150px auto; /* DEFAULT FOR DESKTOP: Align right with auto left margin */
  color: #6F6F6F;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 24px;
  text-align: right; /* DEFAULT FOR DESKTOP: Right align */
}
.blog-title a {
  text-decoration: none;
  color: inherit;
}


/* --- ANIMATION STYLES --- */
@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(100px) scale(1); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

.animate-fade-down {
  opacity: 0;
  animation-name: fadeDown;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-delay: 2s;
}

.animate-slide-in-right {
  opacity: 0;
  animation-name: slideInRight;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-delay: 2s;
}


/* --- BLOG POST ARTICLE STYLES (for individual post, not listing) --- */
.blog-post {
  width: 80%;
  margin: 0 auto;
}

.blog-post .featured-image {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.blog-content {
  margin-top: 20px;
}

/* --- BLOG LISTING GRID STYLES --- */
.blog-listing-grid-section {
  background-color: #E5E5E5;
  padding: 60px 20px;
}

.blog-listing-grid {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default 3 columns for desktop */
  gap: 30px;
}

.blog-thumbnail-card {
  background-color: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.blog-thumbnail-card:hover {
  background-color: #404040;
  color: white;
}
.blog-thumbnail-card:hover .card-title,
.blog-thumbnail-card:hover .card-author,
.blog-thumbnail-card:hover .read-time {
  color: white;
}
.blog-thumbnail-card:hover .read-time .red-dot {
  background-color: #ff0201;
}

/* Blog Card Read Time */
.read-time {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  color: #404040;
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 15px;
}

.read-time .red-dot {
  width: 8px;
  height: 8px;
  background-color: #EE2524;
  border-radius: 50%;
  margin-right: 6px;
}

/* Blog Card Thumbnail */
.image-padding-wrapper {
  padding: 0;
  box-sizing: border-box;
}
.thumbnail-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0;
  flex-shrink: 0;
}
.thumbnail-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.thumbnail-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Blog Card Content */
.card-content {
  padding-top: 15px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.card-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #404040;
  line-height: 1.2;
}
.card-author {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  color: #6F6F6F;
}

/* Blog Card Tags */
.blog-tags {
  margin-top: 5px;
  font-size: 12px;
  font-family: 'Source Sans Pro', sans-serif;
  color: #6F6F6F;
}
.blog-tag-item {
  display: inline-block;
  background-color: #f0f0f0;
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 5px;
  margin-bottom: 5px;
}


/* --- PAGINATION STYLES --- */
.pagination {
  width: 80%;
  margin: 40px auto 0;
  text-align: center;
}
.pagination nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.pagination a,
.pagination span {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  text-decoration: none;
  padding: 6px 10px;
  display: inline-block;
  user-select: none;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}
.pagination a {
  color: #6F6F6F;
  font-weight: normal;
}
.pagination li span {
  color: #EE2524;
  font-weight: bold !important;
  border-bottom: 2px solid #EE2524;
}
.pagination a:hover {
  color: #EE2524;
}
.pagination .prev-next {
  color: #404040;
  font-weight: 600;
  text-decoration: none;
}
.pagination .prev-next:hover {
  color: #EE2524;
}
.pagination .list-view-icon {
  color: #404040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination .list-view-icon:hover {
  color: #EE2524;
}


/* --- RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 1199px) {
  .blog-listing-grid {
    grid-template-columns: repeat(2, 1fr); /* Change to 2 columns */
    gap: 20px; /* Slightly smaller gap */
  }

  /* Make content wider, but still use auto margins to center */
  .featured-thumbnail-section,
  .blog-title.blog-featured-title,
  .latest-release-heading,
  .blog-post,
  .pagination,
  .blog-listing-grid, /* Grid itself should have its width adjusted here */
  .blog-heading-section {
      width: 90%; /* Increase width to fill more space */
      margin-left: auto;
      margin-right: auto;
  }

  /* Center the headings for mobile/tablet */
  .blog-title-main,
  .blog-subtitle-main {
      text-align: center;
      margin-left: auto; /* Override specific left margin for centering */
      margin-right: auto;
      width: 100%; /* Take full width within parent's 90% */
  }

  .horizontal-line-wrapper {
      margin-left: auto; /* Override specific left margin for centering */
      margin-right: auto;
      width: 90%; /* Keep its relative width */
  }

  .latest-release-heading {
      text-align: center; /* Center align this heading */
  }

  /* Latest Release Thumbnail and Title to be centered */
  .featured-thumbnail-section {
      margin-left: auto;
      margin-right: auto;
  }
  .blog-title.blog-featured-title {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
  }

  .blog-title-main {
      font-size: 44px; /* Adjust font size */
  }
  .blog-subtitle-main {
      font-size: 24px; /* Adjust font size */
  }
}

@media (max-width: 767px) {
  /* Tablet portrait and larger mobile devices */
  body {
    overflow-x: hidden; /* Ensure no horizontal scroll on smaller screens */
  }

  .blog-listing-grid {
    grid-template-columns: 1fr; /* Single column layout for blog posts */
    gap: 30px; /* Maintain good spacing between cards */
  }

  .featured-thumbnail-section {
    height: 250px; /* Make the featured image smaller on mobile */
    min-height: 200px;
    width: 90%; /* Keep it at 90% centered */
  }

  /* Adjust read-time-badge for mobile (for the featured post) */
  .read-time-badge {
    position: static; /* Remove absolute positioning */
    margin: 10px auto 0; /* Center it horizontally */
    width: fit-content; /* Shrink to content */
    left: auto; /* Remove left positioning */
    top: auto; /* Remove top positioning */
  }

  .blog-title.blog-featured-title,
  .latest-release-heading {
      margin-bottom: 60px; /* Reduce bottom margin */
      width: 90%; /* Keep it at 90% centered */
      text-align: center; /* Ensure centered */
  }
  .blog-listing-grid-section {
    padding: 30px 20px; /* Reduce vertical padding */
  }
  .blog-heading-section {
    padding: 40px 20px 20px; /* Adjust padding for smaller screens */
  }

  /* Ensure all main headings are centered and take full available width */
  .blog-title-main,
  .blog-subtitle-main {
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* For text elements */
    width: 100%; /* Or 90% if you prefer inner padding */
  }

  /* Adjust horizontal-line-wrapper for mobile (including the red circle) */
  .horizontal-line-wrapper {
      margin-left: auto; /* Center horizontally */
      margin-right: auto;
      width: 90%; /* Adjust width to fit within viewport */
      /* No change to position: relative or height as they are necessary */
  }
  /* The .red-circle's left: 50% and transform: translate(-50%, -50%) should now work correctly
     relative to the centered and correctly-width-ed .horizontal-line-wrapper */

  .blog-title-main {
    font-size: 38px; /* Further reduce heading size */
  }
  .blog-subtitle-main {
    font-size: 20px; /* Further reduce subheading size */
  }
  .latest-release-heading {
      font-size: 28px;
  }
  .blog-post {
      width: 90%; /* Make article width full on mobile */
      padding: 0 10px; /* Add some side padding */
  }
  .pagination {
    width: 90%; /* Adjust pagination width */
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .blog-title-main {
    font-size: 32px;
  }
  .blog-subtitle-main {
    font-size: 18px;
  }
  .latest-release-heading {
      font-size: 24px;
  }
  .featured-thumbnail-section {
      height: 200px;
  }
  .blog-thumbnail-card {
      padding: 15px; /* Slightly less padding on cards */
  }
  .card-title {
      font-size: 16px;
  }
  .overview-label {
      font-size: 18px;
  }
  .summary-text {
      font-size: 16px;
  }
  .pagination a, .pagination span, .pagination .prev-next {
    font-size: 16px; /* Slightly smaller pagination text */
    padding: 4px 8px;
  }
}