@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@200;300;400;500&display=swap');

.paycheck-trends {
  position: relative;
  padding:25px 20px 30px 0px;
  font-family: 'Work Sans', sans-serif;
  overflow: hidden;
  background-color: #fff;
}

.paycheck-trends::before {
  content: "";
  position: absolute;
  top: -262px; /* Push image lower down */
  left: 70%;
  transform: translateX(-50%) rotate(179.41deg);
  width: 1800px; /* Increased width for more spread */
  height: 600px;  /* Increased height for more presence */
  background: url('../images/data-lab/0e543d1f63562c22f8e67845677c14e5bd558389.png') no-repeat center center;
  background-size: cover; /* cover to fill space */
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.paycheck-container {
  position: relative;
  z-index: 1;
  
  margin: 0 auto;
}

.paycheck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.logo {
  height: 48px;
}

.date {
  font-weight: 600;
  font-size: 24px;
  color: #333;
}
.backlink{
  text-decoration: underline;
  margin-bottom: 10px;
  color:#434445;
}
.paycheck-title {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 15px;
  font-family: 'Work Sans', sans-serif;
  text-transform: none!important;
}

.paycheck-subtitle {
  font-size: 1.25rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 10px;
  margin-top: 10px;
}

.ai-summary {
  display: flex;
  align-items: flex-start;
  background-color: #f4f4f4;
  border-left: 4px solid #2cb67d;
  padding: 20px;
  border-radius: 6px;
  margin-top:50px;
}

.ai-summary-icon {
  font-size: 1.2rem;
  margin-right: 12px;
  color: #2cb67d;
}

.ai-summary-text {
  font-size: 1.25rem;
  color: #333;
  line-height: 1.5;
}
.data-lab-title {
  display: flex;
  gap: 3px; /* space between letters */
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.data-lab-title img {
  height: 48px; /* adjust as per design */
  width: auto;
  display: inline-block;
}
.word-gap {
  display: inline-block;
  width: 24px; /* adjust space between words */
}
.paycheck-heading-inline {
  display: flex;
  align-items: flex-end;
  justify-content:flex-start;
  gap: 0px;
  font-family: 'Work Sans', sans-serif;
  flex-wrap: wrap; /* ensures responsiveness on small screens */
  text-align: center;
  color:#04A469;
}

.paycheck-title {
  font-size: 44px;
  font-weight: 300;
  margin: 0;
  white-space: nowrap;
  /*width:540px;*/
  letter-spacing: -1.5px;
  word-spacing: -2px;
}

.separator-line {
  width: 290px;
  height: auto;
  display: block;
}

.powered-by {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.powered-logo {
  /*height: 47px;*/
  height:auto;
  width: 107px;
}
/* second section */
.paycheck-content {
  /*padding: 40px 0;*/
  font-family: 'Work Sans', sans-serif;
}

.main-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.main-left {
  flex: 1;
}

.main-left .block {
  margin-bottom: 40px;
  margin-top:20px;
  margin-left: 5px;
}

.block-title {
  font-size: 40px;
  font-weight: 600!important;
  margin-bottom: 10px;
  font-family: 'Work Sans', sans-serif;
  text-transform: none!important;
}

.block-desc {
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
  padding:5px;
}

.chart-img {
  width: 100%;
  height: auto;
  background: #f0f2f5;
  border: 1px solid #ddd;
}

.source {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.main-right {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 20px; /* or whatever top offset you prefer */
  align-self: flex-start; /* ensures it sticks in flex containers */
}

.main-right .ad-img {
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}

.related-studies h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.related-studies ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.related-studies ul li {
  margin-bottom: 8px;
}

.related-studies ul li a {
  font-size: 13px;
  text-decoration: none;
  color: #333;
}

.view-more {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0073aa;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
  .main-grid {
    flex-direction: column;
    gap: 20px;
  }

  .main-left,
  .main-right {
    width: 100% !important;
    max-width: 100%;
  }

  .main-right {
    margin-top: 20px;
  }

  .main-right .ad-img {
    width: 100%;
    height: auto;
  }
}
.chart-container {
  position: relative!important;
  width: 100%!important;
  height: 650px!important;
}

@media (max-width: 768px) {
  .chart-container {
    height: 400px; /* or smaller if needed */
  }
}
#chart-container1,
#chart-container2,
#chart-container3,
#chart-container4,
#chart-container5,
#chart-container6 {
  width: 100%;
  overflow-x: hidden; /* Avoid page-level horizontal scroll */
}

[id^="chart"] {
  max-width: 100% !important;
  height: auto; /* Let the height shrink responsively */
}
.methodology-section {
  background-color: #434445;
  color: #ffffff;
  padding: 30px 20px;
  /*border-top: 4px solid #00A469;*/
} 
.gradient-border-wrapper {
  position: relative;
  padding-top: 6px; /* To make room for the gradient border */
}

.gradient-border-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px; /* Thickness of the top border */
  width: 100%;
  background: linear-gradient(110.77deg, #53ADA1 1.35%, #48AC99 1.36%, #04A469 53.68%, #60AA55 101.03%);
  border-radius: 2px 2px 0 0; /* Optional rounding */
}

.section-divider {
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0; /* eliminate extra vertical whitespace */
}

.divider-line {
  display: block;
  width: 100%;
  height: 5px;
  margin: 0 auto;
  padding: 0;
}

.content-wrapper {
  padding:10px 50px 50px 50px;
  margin: 0 auto;
}

.section-line {
  border: none;
  height: 3px;
  width: 180px;
  background-color: #00A469;
  margin-bottom: 30px;
}

.section-title-method {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 30px;
  font-family: 'Work Sans', sans-serif;
  text-transform: none;
}

.section-text {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  font-family: 'Work Sans', sans-serif;
}
@media (max-width: 768px) {
  .paycheck-title {
    font-size: 28px;  /* Smaller font for mobile */
    white-space: normal;  /* Allow wrapping */
    text-align: left; /* Optional: align left instead of center */
  }
  .paycheck-header {
    flex-direction: column;  /* Stack logo and date vertically */
    align-items: flex-start; /* Align to left */
    gap: 10px; /* Space between logo and date */
  }
  .date {
    font-size: 18px;  /* Slightly smaller date text */
  }
  .paycheck-heading-inline {
    flex-direction: column; /* Stack title, separator, and powered by vertically */
    align-items: flex-start;
    gap: 10px;
  }
  .separator-line {
    width: 100%; /* Make separator full width on mobile */
  }
  .powered-by {
    justify-content: flex-start;
  }
}
.with-bottom-line {
  position: relative;
  flex-grow: 1;   /* stretch to fill */
  display: flex;
  align-items: flex-end; /* push line to bottom */
 
}
.with-bottom-line::after {
   content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px; /* instead of 0 */
  height: 1px;
  background: #e4e2df;
}
.paycheck-heading-inline {
  display: flex;
  align-items: flex-end;
  width: 100%;
  gap: 10px; /* space between elements */
}

.paycheck-title {
  flex: 0 1 auto; /* takes natural width, can shrink if needed */
  margin: 0;
}


.powered-by {
  flex: 0 0 auto; /* fixed to its content width */
  font-size: 14px;
  white-space: nowrap; /* keep "Powered by" on one line */
  margin-bottom: 12px;
  color:#86878A;
}
.paycheck-header {
  display: flex;
  flex-direction: column;
  gap: 17px; /* space between top row and logo */
  align-items: stretch;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

