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

/* @import url('http://example.com/example_style.css'); */

/***********************************************/
/* CSS @imports must be at the top of the file */
/* Add them above this section                 */
/***********************************************/

/*****************************************/
/* Start your style declarations here    */
/*****************************************/