.cha-horizontal-accordion {
    display: flex;
    gap: 16px;
    width: 100%;
}

/* Tabs */
.cha-tab {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 80px; /* collapsed width */
    min-height: 650px;
    cursor: pointer;
    overflow: hidden;
       /*transition: flex-basis 1s  ease-in-out;*/
       transition: flex-basis 1.2s cubic-bezier(0.25, 0.1, 0.25, 1.0);

    position: relative
}

/* Expanded tab */
.cha-tab.expanded {
    flex-grow: 1;
    background: #111827;
    max-height: 680px;
    color: #ffff;
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding:35px;
}
.cha-tab.expanded span.cha-tab-number {
    font-size: 88px;
    font-weight: 600;
    line-height: 32px;
}
.cha-tab.expanded .cha-tab-header {
    width: 100%;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    
}
.cha-tab.collapsed {
    max-height: 680px;           /* fixed height */
    border: 2px solid #111827;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;   /* stick content to bottom */
    overflow: hidden;            /* ensure content stays within the height */
}
.cha-tab-content {
    display: flex;
    flex-direction: column;
    justify-content: end;
}
.cha-tab-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.cha-tab.expanded .cha-tab-content {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.cha-tab-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: none !important;
    flex-direction: column-reverse;
    gap: 20px;
}
.cha-tab-description {
    opacity: 0;
    transition: opacity 0.4s ease; /* fade speed */
}

/* Jab tab expanded ho → fade-in */
.cha-tab.expanded .cha-tab-description {
    opacity: 1;
}


span.cha-tab-title.vertical-text
 {
    color: #111827;
    font-weight: 500;
    font-size: 30px;
    line-height: 32px;
    font-family: 'outfit';
}
.cha-tab.collapsed .cha-tab-header {
    background: none !important;
    /*border: 2px solid #111827;*/
    /* display: flex; */
}
.cha-tab.collapsed span.cha-tab-number

 {
    transform: rotate(270deg);
    font-size: 32px;
    line-height: 32px;
    font-weight: 600;
}
/* Collapsed vertical title */
.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 24px;
}

/* Expanded title */
.cha-tab.expanded .cha-tab-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 20px;
}

/* Number styling */
.cha-tab-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Content */
/*.cha-tab-content {*/
/*    opacity: 0;*/
/*    transform: translateX(30px);*/
/*    transition: opacity 0.35s ease, transform 0.35s ease;*/
/*    flex: 1;*/
/*    padding: 16px;*/
/*}*/
.cha-tab.collapsed .cha-tab-content {
    display: none !important;
    opacity: 0;
    transform: translateX(30px);
    flex: 0 !important;
    height: 0 !important;
}

/*.cha-tab.expanded .cha-tab-content {*/
/*    opacity: 1;*/
/*    transform: translateX(0);*/
/*}*/

.cha-tab.expanded .cha-tab-content {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
    flex: unset;
    height: auto;
}
.cha-tab:hover .cha-tab-content {
    transition: none !important;
}
/* Responsive for mobile */
@media screen and (max-width: 1600px) {
    
    .cha-tab.expanded span.cha-tab-number{
        
        font-size:65px;
    }
    .cha-tab{
         min-height: 550px;
    }
    .cha-tab.expanded .cha-tab-header {
    width: 100%;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    padding:0px;
    
}
.cha-tab.expanded .cha-tab-title {

    font-size: 18px !important ;
}
    .cha-tab-title {
        font-size: 22px !important;
        line-height: 22px !important;
    }
    
    
    .cha-tab.collapsed {
    max-height:850px !important; 
    }
    .cha-tab.expanded {
    max-height: 850px ;
        
    }
}
@media screen and (max-width: 992px) {
    .cha-horizontal-accordion {
        flex-direction: column;
    }
    .cha-tab {
        flex-basis: auto;
        min-height: auto;
    }
    .vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
    }
  .cha-tab-header{
      flex-direction: row ;
  }
  .cha-tab.collapsed span.cha-tab-number{
      transform: rotate(0deg) !important;
  }

}

@media screen and (max-width: 1024px) {
    
    .cha-tab.expanded {
    flex-basis: 250px !important;
    padding: 20px 20px;
}
 .cha-tab.collapsed span.cha-tab-number{
             transform: rotate(0deg) !important;
        font-size: 20px;
        margin: 0px !important;
        line-height: 24px !important;
  }
  span.cha-tab-title.collapsed-title.vertical-text {
    font-size: 20px !important;
    line-height: 24px!important;
    font-weight: 600 !important;
}
    .cha-tab.collapsed {
        justify-content: center !important;
        align-items: start !important;
        padding: 20px 16px;
    }
.cha-tab-header {
    gap: 5px;
}
.cha-tab-description b {
    font-size: 20px !important;
    line-height: 52px !important;
}
.cha-tab-description p {
    font-size: 16px !important;
    line-height: 21px !important;
    font-weight: 300 !important;
}
.cha-tab-description {
    font-size: 16px !important;
    line-height: 21px !important;
    font-weight: 300;
}
.cha-tab-description strong {
    font-size: 16px !important;
    line-height: 20px !important;
}
/*.cha-tab-description p b {*/
/*    font-size: 24px !important;*/
/*    line-height: 20px !important;*/
/*}*/
.cha-tab-description span {
    font-size: 20px !important;
}

span.cha-tab-title.collapsed-title.vertical-text {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
}

   .cha-tab-title {
        white-space: normal !important;
        word-break: break-word;
    }

    /* Vertical text also wraps in mobile */
    .vertical-text {
        white-space: normal !important;
        word-break: break-word;
    }

    /* Give space so wrapped text fits nicely */
       .cha-tab-header {
        width: 100%;
        /* flex-wrap: wrap; */
        gap: 20px;
        justify-content: start;
    }
.cha-tab.expanded .cha-tab-title {

    font-size: 14px !important;
    line-height: 20px;
    text-transform: uppercase;
    font-weight: 500;
}
    .cha-tab.expanded .cha-tab-header {
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap:15px !important;
    }
.cha-tab.expanded {
        max-height: 450px !important;
            padding: 20px   24px !important;
            

        flex-basis: 450px !important;
    }
    .cha-tab.expanded span.cha-tab-number{
        
        font-size:58px !important;
        line-height: 32px !important;
        
    }

.cha-tab.collapsed .cha-tab-header{
    padding:0px !important;
}
}
@media screen and (max-width: 767px) {
   .cha-tab.collapsed span.cha-tab-number{
             transform: rotate(0deg) !important;
        font-size: 20px;
        margin: 0px !important;
        line-height: 24px !important;
  }
  span.cha-tab-title.collapsed-title.vertical-text {
    font-size: 20px !important;
    line-height: 24px!important;
    font-weight: 600 !important;
}
    .cha-tab.collapsed {
        justify-content: center !important;
        align-items: start !important;
        padding: 20px 16px;
    }
.cha-tab-header {
    gap: 5px;
}
.cha-tab-description b {
    font-size: 20px !important;
    line-height: 52px !important;
}
.cha-tab-description p {
    font-size: 16px !important;
    line-height: 21px !important;
    font-weight: 300 !important;
}
.cha-tab-description {
    font-size: 16px !important;
    line-height: 21px !important;
    font-weight: 300;
}
.cha-tab-description strong {
    font-size: 16px !important;
    line-height: 20px !important;
}
/*.cha-tab-description p b {*/
/*    font-size: 24px !important;*/
/*    line-height: 20px !important;*/
/*}*/
.cha-tab-description span {
    font-size: 20px !important;
}

span.cha-tab-title.collapsed-title.vertical-text {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
}

   .cha-tab-title {
        white-space: normal !important;
        word-break: break-word;
    }

    /* Vertical text also wraps in mobile */
    .vertical-text {
        white-space: normal !important;
        word-break: break-word;
    }

    /* Give space so wrapped text fits nicely */
       .cha-tab-header {
        width: 100%;
        /* flex-wrap: wrap; */
        gap: 20px;
        justify-content: start;
    }
.cha-tab.expanded .cha-tab-title {

    font-size: 14px !important;
    line-height: 20px;
    text-transform: uppercase;
    font-weight: 500;
}
    .cha-tab.expanded .cha-tab-header {
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap:15px !important;
    }
.cha-tab.expanded {
        max-height: 400px !important;
            padding: 24px   24px !important;
            

        flex-basis: 450px !important;
    }
    .cha-tab.expanded span.cha-tab-number{
        
        font-size:58px !important;
        line-height: 32px !important;
        
    }

.cha-tab.collapsed .cha-tab-header{
    padding:0px !important;
}
    
}