/* CASE STUDY PAGES (1-230) ------------------------------------------------------------------------------------------------ */
/* BLOCK 1 ........................................................................................*/ 
.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);
  }
}

/* --- Mobile-Specific Overrides for Headings and Descriptions --- */
/* (Previous CSS for font sizes, margins, etc. goes here, then add this) */


@media (max-width: 480px) { /* Adjustments for smaller phones */
    .animate-heading,
    .delay-animate-heading {
        font-size: 24px;
        line-height: 1.2;
        margin-left: 15px;
        margin-right: 15px;
        max-width: calc(100% - 30px);
    }

    /* Hide the <br> tag inside .animate-heading for smaller phones */
    .animate-heading br {
        display: none;
    }

    /* Hide the <br> tag inside .delay-animate-heading for smaller phones */
    .delay-animate-heading br {
        display: none;
    }

    .animate-description,
    .delay-animate-description {
        font-size: 18px;
      line-height: 1.2;
        margin-left: 15px;
        margin-right: 15px;
        max-width: calc(100% - 30px);
    }
}

/* BLOCK 2 ........................................................................................*/

.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;
}

@media (max-width: 768px) {
  .text-box-blue {
    width: 95%;              /* wider on mobile */
    margin-left: 5%;       /* center horizontally */
    margin-right: auto;
    padding: 24px;           /* smaller padding for smaller screens */
    border-radius: 0px;      /* keep as is or adjust if needed */
    text-align: left;        /* keep text alignment */
  }
}

/* BLOCK 3 ........................................................................................*/

.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);
}

@media (max-width: 768px) {
  .invert-box-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .invert-box {
    font-size: 16px;
    width: auto; /* auto-size based on content */
    max-width: 90%; /* optional: prevent overly long text from breaking layout */
    box-sizing: border-box;
  }
}


/* BLOCK 4 ........................................................................................*/

.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 */
}

/* BLOG LISTING PAGE (230 - 984) ----------------------------------------------------------------------------------------------- */
/* --- GLOBAL FONT IMPORTS --- */
@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; /* 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;
}

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

.horizontal-line-wrapper {
    position: relative;
    height: 24px;
    margin: 0 0 10px 0; /* DESKTOP: Margin left 0, allows it to go to edge */
    width: 100%; /* DESKTOP: Expand to full width */
    max-width: 100%; /* Ensure it's not constrained */
    overflow: hidden;
}

.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%;
  transform: translate(-50%, -50%);
  z-index: 2;
}


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


/* Latest Release Section */
.latest-release-heading {
  font-size: 32px;
  font-weight: 400;
  color: #6F6F6F;
  font-family:'Source Sans Pro', sans-serif;
  width: 80%; /* Match thumbnail width */
  margin: 100px 0 0 auto; /* DESKTOP: Aligned right with no right margin */
  text-align: left; /* DESKTOP: Text aligns left within its 80% block */
  box-sizing: border-box;
}

.featured-thumbnail-section {
  width: 80%;
  height: 300px; /* Desktop fixed height */
  margin: 20px 0 20px auto; /* DESKTOP: Aligned right with no right 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; /* Desktop: keep hidden to clip image to fixed height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.6s ease;
  min-height: 250px;
  box-sizing: border-box;
}

.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; /* Default for desktop, overridden for mobile */
  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; /* Default height */
  line-height: 40px; /* For single line content */
  user-select: none;
  overflow: hidden; /* Hide overflow initially */
  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; /* Default desktop margin */
  margin-bottom: 8px;
  pointer-events: none;
  opacity: 1; /* Make visible by default on desktop */
}
.summary-text {
  opacity: 0;
  max-height: 0; /* Restrict height when not expanded */
  overflow: hidden; /* Hide overflow */
  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; /* Allow height to adjust */
  background: rgba(111, 111, 111, 0.85);
  padding: 16px 20px; /* Default desktop padding */
  line-height: normal;
  justify-content: flex-start;
  overflow: visible; /* Allow content to be visible when expanded */
}

.featured-thumbnail-section:hover .overview-bar .summary-text {
  opacity: 1;
  max-height: 200px; /* Allow more height for full readability */
}

.featured-thumbnail-section:hover .overview-bar .overview-label {
  opacity: 1;
  margin-top: 10px;
}
.blog-title.blog-featured-title {
  width: 80%; /* Match thumbnail width */
  margin: 0 0 150px auto; /* DESKTOP: Aligned right with no right margin */
  color: #6F6F6F;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  font-size: 24px;
  text-align: left; /* DESKTOP: Text aligns left within its 80% block */
  box-sizing: border-box;
}
.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 */
  }

  /* Core content containers centered with auto margins */
  .blog-post,
  .pagination,
  .blog-listing-grid,
  .blog-heading-section {
      width: 90%;
      margin-left: auto;
      margin-right: auto;
  }

  /* Center the main headings for tablet */
  .blog-title-main,
  .blog-subtitle-main {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      width: 100%;
  }

  .horizontal-line-wrapper {
      margin-left: auto;
      margin-right: auto;
      width: 90%;
  }

  /* Tablet: Latest Release section should be centered */
  .latest-release-heading {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      width: 90%; /* Ensure it's constrained and centers */
  }
  .featured-thumbnail-section {
      margin-left: auto;
      margin-right: auto;
      width: 90%; /* Ensure it's constrained and centers */
  }
  .blog-title.blog-featured-title {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      width: 90%; /* Ensure it's constrained and centers */
  }

  .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;
  }

  /* MOBILE: Center "What We Think" and "The Integratz blog" */
  .blog-title-main,
  .blog-subtitle-main {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 95%; /* Keep reasonable width for content */
  }

  /* MOBILE: Center horizontal line wrapper (parent of red dot, though red dot is hidden) */
  .horizontal-line-wrapper {
      margin-left: auto;
      margin-right: auto;
      width: 95%; /* Adjust width for consistency */
      box-sizing: border-box;
  }

  /* REMOVE RED DOT ON GREY LINE FOR MOBILE */
  .red-circle {
      display: none;
  }

  /* MOBILE: Featured Thumbnail Container - Now a flex container for top expansion */
  .featured-thumbnail-section {
    width: 95%;
    height: auto; /* Allow height to adjust */
    min-height: 250px; /* Ensure a minimum height for the image */
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    position: relative; /* Keep for read-time-badge positioning */
    overflow: hidden; /* Keep hidden by default to clip image */

    /* Flex properties to allow content to expand from top */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: flex-start; /* Align content to the top */
    align-items: stretch; /* Stretch children to fill width */
    background-image: var(--bg-image); /* Placeholder, ensure your image is here */
  }

  /* "X min read" position on Recent Post Thumbnail */
  .read-time-badge {
    position: absolute; /* Keep absolute positioning */
    top: 10px; /* Adjust top padding */
    left: 10px; /* Adjust left padding */
    margin: 0; /* Remove any auto margins that might interfere */
    z-index: 3; /* Ensure it's above other elements */
  }

  /* MOBILE: Overview Bar - now expands from the top and is left-aligned */
  .overview-bar {
    position: relative; /* Back to relative to flow with content */
    width: 100%;
    background: #6f6f6f;
    color: white;
    /* **MODIFIED**: Initial padding for the bar when not expanded */
    padding: 12px 20px; /* Adjusted initial padding for the bar on mobile */
    border-radius: 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.6s ease;
    height: auto; /* Allow height to auto-adjust based on content (label + arrow) */
    line-height: normal; /* Normal line height for flexible content */
    user-select: none;
    overflow: hidden; /* Hide summary text initially */
    display: flex;
    flex-direction: column; /* Content stacks vertically */
    justify-content: flex-start; /* Align content to top */
    align-items: flex-start; /* Align content to left */
    box-sizing: border-box;
    z-index: 2; /* Layer above background image */
  }

  .overview-label {
    /* **MODIFIED**: Show "Overview (arrow down)" text and make it right-aligned */
    font-size: 18px; /* Visible font size for "Overview" */
    line-height: 1.2; /* Line height for the text */
    opacity: 1; /* Make visible */
    font-weight: 600; /* Keep bold */
    width: 100%; /* Take full width to allow text-align right */
    text-align: right; /* Align "Overview (arrow down)" to the right */
    pointer-events: none; /* Allows clicks to pass through to the bar */
    margin-top: 0; /* No top margin for the label itself */
    margin-bottom: 0; /* No bottom margin for the label itself */
    white-space: nowrap; /* Prevent "Overview (arrow down)" from wrapping */

    /* Add the arrow icon using a pseudo-element */
    position: relative; /* For pseudo-element positioning */
    display: block; /* Ensure it takes its own line for text-align to work */
    padding-bottom: 8px; /* Padding for the spacing below "Overview (arrow down)" */
    padding-right: 4px; /* Small padding so text isn't right on the edge */
  }

  .overview-label::after {
    content: " \25BC"; /* Unicode for small black down-pointing triangle */
    font-size: 0.8em; /* Smaller arrow */
    vertical-align: middle;
    display: inline-block; /* Allows text-align right to work on parent */
    transform: translateY(-2px); /* Slight adjustment for alignment */
    transition: transform 0.3s ease; /* Smooth rotation transition */
  }
  .featured-thumbnail-section.is-expanded .overview-label::after {
    transform: translateY(2px) rotate(180deg); /* Rotate arrow up when expanded */
  }


  .summary-text {
    opacity: 0;
    max-height: 0;
    margin-top: 0; /* Will be pushed down by padding on bar */
    margin-bottom: 0;
    transition: opacity 0.6s ease, max-height 0.6s ease;
    text-align: left;
    font-size: 16px; /* Consistent font size for summary */
    line-height: 1.4;
  }

  /* **MODIFIED**: Rules for both :hover (desktop) and .is-expanded (mobile tap) */
  .featured-thumbnail-section:hover .overview-bar,
  .featured-thumbnail-section.is-expanded .overview-bar { /* Added .is-expanded */
    height: auto;
    /* **MODIFIED**: Adjusted padding-top. Now refers to actual padding. */
    padding-top: 24px; /* More space before summary text */
    padding-bottom: 16px;
    background: rgba(111, 111, 111, 0.85);
    line-height: normal;
    justify-content: flex-start;
    overflow: visible;
    align-items: flex-start;
  }

  /* **MODIFIED**: Rules for both :hover (desktop) and .is-expanded (mobile tap) */
  .featured-thumbnail-section:hover .overview-bar .summary-text,
  .featured-thumbnail-section.is-expanded .overview-bar .summary-text { /* Added .is-expanded */
      opacity: 1;
      max-height: 500px; /* Significantly increase max-height to ensure full readability */
      margin-top: 8px; /* Space between "Overview" and summary text when expanded */
      margin-bottom: 8px; /* Space at bottom of summary text */
  }

  /* **MODIFIED**: Ensure overview-label remains visible when expanded, but only its text/arrow */
  .featured-thumbnail-section:hover .overview-bar .overview-label,
  .featured-thumbnail-section.is-expanded .overview-bar .overview-label {
    font-size: 18px; /* Keep visible */
    line-height: 1.2; /* Keep line height */
    opacity: 1; /* Keep visible */
    margin-top: 0;
    margin-bottom: 0; /* Remove margin from label to let summary's margin take over */
    padding-bottom: 8px; /* Keep padding for spacing above summary */
    text-align: right; /* Keep right-aligned */
  }


  /* MOBILE: Latest Release Title and Featured Blog Title left aligned with thumbnail */
  .latest-release-heading {
      font-size: 28px;
      margin-bottom: 20px;
      text-align: left;
      margin-left: 2.5%;
      margin-right: auto;
      width: 95%;
      box-sizing: border-box;
      margin-top: 40px;
  }
  .blog-title.blog-featured-title {
      text-align: left;
      margin-left: 2.5%;
      margin-right: auto;
      width: 95%;
      margin-bottom: 60px;
      box-sizing: border-box;
  }


  .blog-listing-grid-section {
    padding: 30px 20px;
  }
  .blog-heading-section {
    padding: 40px 20px 20px;
  }

  /* REDUCE BLOG TITLE FONT SIZE FOR MOBILE */
  .blog-title-main {
    font-size: 32px;
  }
  .blog-subtitle-main {
    font-size: 18px;
  }

  .blog-post {
      width: 90%;
      padding: 0 10px;
  }
  .pagination {
    width: 90%;
    margin-top: 30px;
  }

}

@media (max-width: 480px) {
  .blog-title-main {
    font-size: 28px;
  }
  .blog-subtitle-main {
    font-size: 16px;
  }
  .latest-release-heading {
      font-size: 24px;
      margin-bottom: 15px;
  }
  .featured-thumbnail-section {
      min-height: 180px;
      width: 95%;
  }
  .blog-thumbnail-card {
      padding: 15px;
  }
  .card-title {
      font-size: 16px;
  }
  .overview-label {
      font-size: 16px; /* Adjusted for smaller mobile screens */
      padding-bottom: 6px; /* Adjusted padding for smaller mobile screens */
  }
  .overview-label::after {
      font-size: 0.7em; /* Smaller arrow for smaller screens */
  }
  .summary-text {
      font-size: 14px; /* Adjusted for smaller mobile screens */
  }
  .pagination a, .pagination span, .pagination .prev-next {
    font-size: 16px;
    padding: 4px 8px;
  }
}

/* BLOG POST PAGE (986-1290) ------------------------------------------------------------------------------------------------- */
      *,
*::before,
*::after {
  box-sizing: border-box;
}
      
      /* Ensure HTML and Body allow scrolling and occupy full height */
      html, body {
        height: 100%; /* Important for consistent scroll behavior */
        margin: 0;
        padding: 0;
        background-color: #FFFDF9;
      }

      /* Base styles for the featured image section */
      .blog-hero-section {
        position: relative;
        width: 100%;
        height: 450px; /* Adjust as needed */
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center; /* Vertically center content */
        justify-content: flex-start; /* Left align content */
        color: white;
        text-align: left;
        overflow: hidden; /* Ensure content stays within bounds */
        padding-left: var(--shared-side-padding);
        padding-right: var(--shared-side-padding);
        margin-bottom: 100px;
      }

      /* Dark overlay */
      .blog-hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* 50% black transparent tint */
        z-index: 1; /* Place tint above image but below text */
      }

      .hero-content {
        position: relative;
        z-index: 2;
        width: 80%;
        margin-left: 0;
        padding: 0;
        box-sizing: border-box;
      }

      /* Styling for the "blog / Tags" line */
      .hero-tags-line {
        font-family: 'Source Sans Pro', sans-serif;
        font-size: 20px;
        font-weight: bold; /* Keep "Blog" bold */
        margin-bottom: 10px;
        color: white; /* Default color for all text */
      }

      .hero-tags-line .slash,
      .hero-tags-line .tag-item {
        font-weight: normal; /* Unbold slash and tags */
        color: white !important; /* Override any inherited grey */
      }

      /* Styling for the blog title */
      .hero-title {
        font-family: 'Source Sans Pro', serif; /* Using sans font for title */
        font-size: 48px; /* Large size for prominence */
        font-weight: 400;
        line-height: 1.2;
        margin: 0;
        color: white;
      }
      
      /* Styling for the blog title */
.hero-title {
  font-family: 'Source Sans Pro', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: white;

  /* --- Animation Properties --- */
  opacity: 0; /* Start invisible */
  transform: translateY(-20px); /* Start slightly above its final position */
  animation: fadeInFromTop 1s ease-out forwards; /* Apply the animation */
  animation-delay: 0.5s; /* Optional: Delay the animation slightly after page load */
}

/* Keyframes for the animation */
@keyframes fadeInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px); /* Start 20px above */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* End at original position */
  }
}

      /* Shared variable */
      :root {
        --shared-side-padding: 5%;
      }
      
      /* Blog Layout Wrapper (Flex Container) */
      .blog-layout-wrapper {
        display: flex;
        flex-direction: row;
        /* Keep align-items: flex-start to keep left column content aligned to top */
        align-items: flex-start;
        justify-content: space-between;
        padding-left: var(--shared-side-padding);
        padding-right: var(--shared-side-padding);
        gap: 40px;
        margin-bottom: 100px;
        /* Ensure no overflow: hidden/auto here that traps sticky elements */
      }

      .left-column {
        width: 35%;
        /* This is crucial: make the left column stretch to match the right column's height. */
        /* This ensures the sticky-wrapper has enough "room" to stick throughout the content. */
        /* `flex-grow: 1` might also work here, but min-height controlled by JS is more precise
           if align-items: flex-start is desired. */
        /* For this to work best, the JS for min-height is recommended below. */
      }

      .sticky-wrapper {
        position: sticky;
        top: 100px; /* How far from the top it sticks */
        /* Ensure this element does not have overflow: hidden or auto */
      }

      .right-column {
        width: 65%;
        font-family: 'Source Sans Pro', sans-serif;
        color: #404040;
        line-height: 1.7;
        font-size: 18px;
      }

      /* Left Column Content Styles */
      .left-tags-line {
        font-family: 'Source Sans Pro', sans-serif;
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 10px;
      }

      .left-tags-line .slash,
      .left-tags-line .tag-item {
        font-weight: normal;
        color: #6F6F6F;
      }

      .blog-label {
        color: #404040;
      }

      .slash,
      .tag-item {
        color: #B1B1B1;
      }

      .left-title {
        font-family: 'Source Sans Pro', sans-serif;
        font-size: 30px;
        color: #6F6F6F;
        margin: 20px 0 100px 0;
        font-weight: normal;
      }
      
      .author-name {
        font-weight: bold;
        font-size: 20px;
        margin-bottom: 30px;
      }

      .author-info {
        display: flex;
        align-items: flex-start;
        margin-top: 20px;
      }

      .author-image {
        width: 50%;
        aspect-ratio: 1 / 1;
        background-size: cover;
        background-position: center;
        position: relative;
        border: 2px solid transparent;
      }

      .author-image::before,
      .author-image::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid #6F6F6F;
      }

      .author-image::before {
        top: 0;
        left: 0;
        border-right: none;
        border-bottom: none;
      }

      .author-image::after {
        bottom: 0;
        right: 0;
        border-left: none;
        border-top: none;
      }

      .author-details {
        margin-left: 20px;
        font-family: 'Source Sans Pro', sans-serif;
        color: #6F6F6F;
      }

      .author-contact {
        font-size: 20px;
        margin: 2px 0;
      }

      /* Highlighted Quote Style */
      .quote-highlight {
        background-color: #EE2524;
        color: white;
        padding: 20px;
        border-radius: 4px;
        margin: 30px 0;
      }

      /* End Message */
      .end-message {
        background-color: #6F6F6F;
        color: white;
        text-align: left;
        padding: 30px var(--shared-side-padding);
        font-family: 'Source Sans Pro', sans-serif;
        font-size: 24px;
        border-radius: 4px;
        margin: 100px auto;
        margin-bottom: 100px;
        max-width: calc(90% - (2 * var(--shared-side-padding))); 
      }

      /* Responsive Adjustments */
      @media (max-width: 768px) {
        .blog-hero-section {
          height: 350px;
        }
        .hero-content {
          margin-left: 5%; 
          padding: 15px;
        }
        .hero-title {
          font-size: 36px;
        }
        .hero-tags-line {
          font-size: 20px;
        }

        .blog-layout-wrapper {
          flex-direction: column; /* Stack columns */
        }
        .left-column,
        .right-column {
          width: 100%; /* Full width for columns */
        }
        /* Disable sticky on smaller screens */
        .sticky-wrapper {
            position: static; 
            top: auto;
        }
      }

      @media (max-width: 480px) {
        .blog-hero-section {
          height: 300px;
        }
        .hero-content {
          margin-left: var(--shared-left-margin);
          margin-right: 5%;
        }
        .hero-title {
          font-size: 28px;
        }
      }
      
      .bottom-spacer {
  height: 30px;
  background-color: #FFFDF9; /* Your body's background color */
      }