/* Outer Section: full width container centered on the page */
.use-cases-section {
  background-color: #FFFFFF;
  background-image: url("https://go.adimpact.com/hubfs/Module_3.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 120px;
  overflow: hidden;
}

/* Main container with fixed dimensions as per design */
.use-cases-container {
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

/* Header */
.use-cases-header {
  height: 91px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Full width stretch */
  width: 100%;
}

.use-cases-subheader {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.use-cases-icon-wrapper {
  position: relative;
}

.use-cases-icon {
  width: 12px;
  height: 13px;
  display: block;
}

.use-cases-subheader-text {
  color: #F58526;
  font-size: 14px;
  font-family: Gotham, sans-serif;
  font-weight: 500;
  line-height: 16.8px;
}

.use-cases-title {
  align-self: stretch;
  color: #1B415C;
  font-size: 48px;
  font-family: Gotham, sans-serif;
  font-weight: 350;
  line-height: 57.6px;
  margin: 0;
}

/* Card Area */
.use-cases-card {
  width: 694px;
  height: 440px;
  position: relative;
  box-shadow: 0px 25.27px 45.2px -44px rgba(0, 0, 0, 0.15);
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 32px;
  /* add spacing below card if needed */
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-icon-wrapper {
  position: absolute;
  left: 598px;
  top: 384px;
  /* Adjust size/position as needed */
}

.card-icon {
  display: block;
  /* The SVG/icon itself will define its own size or you can set one here */
}

/* Use Case Information */
.use-case-info {
  height: 163px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 30%;
}

.use-case-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.use-case-bar {
  width: 1.5px;
  height: 24px;
  background: #F58526;
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
}

.use-case-title {
  color: #F58526;
  font-size: 24px;
  font-family: Gotham, sans-serif;
  font-weight: 500;
  line-height: 28.8px;
}

.use-case-description,
.use-case-info {
  align-self: center;
  color: #1B415C;
  font-size: 18px;
  font-family: Gotham, sans-serif;
  // font-weight: 400;
  line-height: 21.6px;
  margin: 0;
}

/* Progress and Categories Section */
.use-cases-progress {
  height: 116px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.progress-bar {
  height: 6px;
  padding-right: 1006px;
  background: #FCFBFB;
  border-radius: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.progress-indicator {
  width: 194px;
  height: 6px;
  background: #F58526;
  border-radius: 200px;
}

/* Categories Row */
.categories-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.category {
  width: 194px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor:pointer;
}

.category-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon {
  width: 40px;
  /* Set according to your design */
  height: 39px;
  display: block;
}

.category-label {
  color: #305E7E;
  font-size: 18px;
  font-family: Gotham, sans-serif;
  font-weight: 500;
  line-height: 23.4px;
  text-align: center;
}

.row {
  display: flex;
  flex-direction: row;
  gap: 115px;
  align-items: center;
}

/* Hide all tab content by default */
.use-cases-tab-content .tab-content {
  display: none;
}

/* Show the active tab */
.use-cases-tab-content .tab-content.active {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}

.card-overlay img{
width: 100%;}

/* Style for active category tab */
.category.active .category-label {
  color: #F58526;
}

/* Optionally style the progress indicator as a slider underline */
.progress-indicator {
  transition: transform 0.3s ease, width 0.3s ease;
  background: #F58526;
  height: 4px;
  border-radius: 2px;
  position: absolute;
  left: 0;
}



/* Default: show desktop tabs, hide mobile accordion */
.tabs-version {
  display: block;
}
.accordion-version {
  display: none;
}

/* Mobile styles (adjust breakpoint as needed) */
@media only screen and (max-width:1200px) {
  .use-cases-header{
    height: unset;
    justify-content: center;
    align-items: center;
  }
  .use-cases-title{
    align-self: center;
      text-align:center;
    /* Heading/Mobile/H4/Book */
    font-family: Gotham;
    font-size: 32px;
    font-style: normal;
    font-weight: 325;
    line-height: 38.4px; /* 38.4px */
    letter-spacing: -0.64px;
    padding-top: 16px;
    padding-bottom: 50px;

  }
  .use-cases-section{
    padding: 40px 20px;
  }
  .tabs-version {
    display: none;
  }
  .accordion-version {
    display: block;
  }
  /* Accordion header styling */
  .accordion-header {
    background: #FFFFFF;
    padding: 15px;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 18px;
    cursor: pointer;
    outline: none;
        display:flex;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .accordion-header svg{
    transition: 0.5s all ease;
    stroke: #305E7E;
  }
  
  .card-icon{
  border-radius: 20px;
    margin-top: 60px;
  }
  
  .accordion-header.active svg{
    transform: rotate(180deg);
    stroke: #F58526;
  }
  
  .use-case-title{
    color:#305E7E; 
    font-family: Gotham;
    font-size: 18px;
    font-style: normal;
    font-weight: 350;
    line-height: 120%; /* 21.6px */
    letter-spacing: -0.36px;
  }
  
  .accordion-header.active .use-case-title {
    color: #F58526;
  }
  
  /* Accordion content styling */
  .accordion-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
  }
  /* Optionally add a little extra padding when content is expanded */
  .accordion-content.active {
    padding: 15px;
  }
  
  .use-case-info{
    /* Body/B3/Book */
      font-family: Gotham;
      font-size: 16px;
      font-style: normal;
      font-weight: 325;
      line-height: 24px; /* 24px */
      letter-spacing: -0.32px;
    text-align:left;
    padding: 30px 0;
    width: 100%;
  }
  
  .card-overlay{
   position: unset; 
    width: unset;
    height: unset;
  }
  
  .use-cases-card{
    width: unset;
    height:290px;
    overflow: unset;
  }
}


@media only screen and (max-width:768px) {

  .use-case-info{
  padding: 0px;
  
  }
  
  .use-cases-container{
  height:unset;}
  
  .use-case-title{
  font-weight: 500}
  
  .use-case-title br{
    content: ' '
  }
   .use-case-title br:after {
    content: ' '
}
}