.our-case__studies,
.cs-detail__sec {
    margin: 130px 0 80px 0;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.filter-container {
    margin-top: 30px;
}

.filter-tab {
    background-color: #f8faff;
    border: 1px solid #e3e6f0;
    cursor: pointer;
    margin-right: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: .625rem;
    height: 100%;
    padding: .7rem 1rem;
    width: 16.063rem;
    margin-bottom: 15px;
}

.filter-tab.active {
    border-bottom: none;
    border-radius: 1.25rem 1.25rem 0 0;
    background: var(--white);
    z-index: 3;
    margin-bottom: 0px;
    height: 65px;
}

.filter-items {
    border-top: none;
    border: 1px solid #ebebeb;
    border-top-right-radius: 1.25rem;
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    background-color: var(--white);
    padding: 1.063rem 1.25rem;
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: -1px;
}

.filter-options .filter-item {
    display: inline-block;
    margin: 15px 20px 15px 0;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    position: relative;
}

.filter-options .filter-item::before {
    content: "|";
    color: #ddd;
    margin-right: 15px;
}

.filter-options .filter-item:first-child::before {
    content: "";
    margin: 0;
}

.filter-options .filter-item.active {
    color: #d70a53;
    font-weight: 600;
}

.selected-tags {
    margin-top: 20px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d70a53;
    color: #d70a53;
    border-radius: 50px;
    padding: 6px 14px;
    margin: 5px;
    font-size: 14px;
    background-color: var(--white);
}

.tag-badge i {
    margin-left: 6px;
    cursor: pointer;
}

.tab-content-section {
    display: none;
}

.tab-content-section.active {
    display: block;
}

.case-study__card.horizontal:first-of-type {
    margin-top: 0px;
}

.case-study__card.horizontal {
    border: 1px solid #e2e8f0;
    background: var(--white);
    overflow: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.case-study__card.horizontal:nth-of-type(even) {
    background: linear-gradient(to bottom right, white, #f2f2f2);
    flex-direction: row-reverse;
}

.case-study__img {
    flex: 1;
    padding: 15px;
}

.case-study__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.case-study__content {
    padding: 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-study__client {
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.case-study__title {
    font-size: 24px;
	line-height: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.case-study__content p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 35px;
	display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-study__btn {
    border: 1px solid #ddd;
    background-color: transparent;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-color) !important;
    width: fit-content;
    margin-bottom: 35px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-study__stats {
    display: flex;
    gap: 60px;
}

.case-study__stats .stat h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.case-study__stats .stat span {
    font-size: 14px;
    color: #666;
}

/* Case Studies Detail Page */

.cs-detail__primary-heading {
    font-size: 25px;
    font-weight: 500;
    color: var(--secondary-color);
}

.cs-detail__secondary-heading {
    font-size: 45px;
    line-height: 55px;
    font-weight: 600;
    padding-top: 20px;
    color: var(--secondary-color);
}

.cs-detail__sec .row .cs-detail__secondary-heading + p {
    font-size: 15px;
    line-height: 22px;
    padding-top: 20px;
}

.cs-detail__main-img img {
    border-radius: 15px;
    margin-top: 20px;
}

.cs-tab-container {
    position: sticky;
    top: 95px;
    background: var(--white);
    z-index: 2;
}

.cs-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    justify-content: space-between;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cs-tabs::-webkit-scrollbar {
    display: none;
}

.cs-tab {
    padding: 30px 20px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cs-tab:hover {
    color: #d70a53;
}

.cs-tab.cs-active {
    color: #d70a53;
    border-bottom: 3px solid #d70a53;
}

.cs-tab-section {
    padding-top: 110px;
}

.cs-tab-section p {
    padding-top: 10px;
    font-size: 15px;
    line-height: 22px;
}

.cs-tab-section ul {
	font-size: 15px;
}

.cs-tab-section ul li ul{
	padding-left: 40px;
}

.cs-tab-section ul li ul li{
	list-style-type: disc;
}

.cs-tab-section ul li {    
	font-size: 15px;
    line-height: 22px;
    padding-top: 10px;
}

.cs-tab-section a {
    color: #d70a53;
    text-decoration: underline;
}

.cs-secondary__heading-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
}

.cs-tab-section h3 {
     font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: var(--secondary-color);
}

.cs-tab-section h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: var(--secondary-color);
}

/* About Section */
.col-left {
    flex: 1;
    min-width: 300px;
}

.col-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}


.about-description {
    margin-top: 20px;
    line-height: 1.6;
}

.about-info-boxes {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.about-info-boxes .info-box {
    border-left: 2px solid #d70a53;
    padding-left: 20px;
}

.info-box h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.info-box span {
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.highlight-box {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    height: max-content;
    margin-left: 100px;
}

.highlight-box h3 {
    font-size: 24px;
	font-weight: 700;
    margin-bottom: 10px;
}

.highlight-box ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.highlight-box li {
    list-style: disc;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
}

.highlight-box a {
    color: #000;
	text-decoration: none;
}

/* UI/UX Section */
.glider-contain .glider-track {
    gap: 20px;
}

.glider-slide img {
	height: 350px;
	object-fit: contain;
}

.glider-slide img {
	border: 1px solid #000;
	border-radius: 10px;
}

/* Key Challenges Section */

.cs-key__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.cs-key__card {
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #f2f2f2;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-key__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cs-key__card h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.cs-key__card p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
    color: #555;
}

/* Solutions Section */
.cs-solution__card .cs-solution__img img {
    max-width: 500px;
    max-height: 500px;
    object-fit: cover;
}

.cs-solution__content {
    margin: auto 0;
}

/* Our Approach Section */
#approach {
    background: linear-gradient(120deg, #fff6f6, #f6fcff);
    margin-top: 110px;
    padding: 50px 20px;
    border-radius: 20px;
}

/* Technology Stack Section */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
}

.tech-item img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tech-item img:hover {
    transform: scale(1.1);
}

/* Key Results Section */
.cs-result-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.cs-result__card {
    padding: 20px;
    border-radius: 12px;
    flex: 0 0 calc(33% - 15px);
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-result__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cs-result__card h3 {
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.cs-result__card p {
	padding-top: 0px;
}

/* Testimonial Section */
.cs-testimonial__card {
    padding: 30px 20px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, #f0f4ff, #ffeef4);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.cs-testimonial__card h3 {
    font-size: 22px;
    line-height: 26px;
}

.cs-testimonial__card strong {
    padding-top: 5px;
}

.cs-testimonial__card img {
    max-width: 100px;
    height: auto;
    display: block;
    margin-top: 10px;
    margin-left: auto;
}

.spinner {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top: 4px solid #000;
    /* Loader color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Similar Project Section */
.cs-similar__card {
  border: 2px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cs-similar__card .card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cs-similar__card .card-desc {
  font-size: 15px;
  line-height: 22px;
  margin-bottom: 0px;
  flex-grow: 1;
}

.cs-similar__card .card-footer {
  padding: 15px 20px;
  border-top: 1px solid #e2e8f0;
  background-color: unset;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cs-similar__card .card-content p {
    font-size: 15px;
    line-height: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-testimonial_card_main .slick-dots li button:before{
    font-size: 50px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 1199px) {
    .cs-solution__card .cs-solution__img img {
        max-width: 100%;
        max-height: 100%;
    }

    .highlight-box {
        margin-left: 0;
    }
}

@media (max-width: 992px) {

    .cs-solution__card .cs-solution__img {
        justify-content: center;
        display: flex;
    }
    .case-study__card.horizontal:nth-of-type(even) {
    flex-direction: column;
    }

    .cs-solution__card .cs-solution__img img {
        max-width: 100%;
        max-height: 100%;
    }

    .cs-solution__content {
        margin-top: 20px;
    }

    .case-study__card.horizontal {
        flex-direction: column;
        padding: 20px;
    }

    .case-study__card.horizontal .case-study__img {
        margin-bottom: 20px;
    }

    .case-study__card.horizontal .case-study__content h3 {
        font-size: 20px;
    }

    .case-study__card.horizontal .case-study__content p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .case-study__img {
        padding: 0px;
    }

    .case-study__content {
        padding: 20px;
    }

    .cs-detail__secondary-heading {
        font-size: 30px;
        line-height: 36px;
        font-weight: 700;
    }

    .cs-detail__primary-heading {
        font-size: 20px;
    }

    .cs-tab-section h3 {
        font-size: 24px;
        line-height: 30px;
    }
}

@media (max-width: 480px) {
    .case-study__card.horizontal {
        gap: 0px;
    }

    .cs-tab-section h3 {
        font-size: 20px;
        font-weight: 700;
        line-height: 26px;
    }

    .filter-items {
        display: none;
    }

    .filter-items.active {
        display: block;
        border-top-right-radius: unset;
        max-height: 250px;
        overflow: auto;
        padding: 0px;
    }

    .filter-tab {
        background-color: unset;
        border: none;
        border-left: 1px solid #e3e6f0;
        margin-right: 0rem;
        font-size: .9rem;
        border-radius: 0rem;
        padding: .5rem;
        margin-bottom: 15px;
        text-align: center;
    }

    .filter-tab:first-of-type {
        border-left: none;
    }

    .filter-tab.active {
        border-bottom: none;
        border-radius: unset;
        height: 100%;
    }

    .filter-options .filter-item {
        display: block;
        border-bottom: 1px solid #f2f2f2;
        margin: 0;
        font-size: 14px;
        padding: 12px;
    }

    .filter-options .filter-item:first-of-type {
        margin-top: 0px;
    }

    .filter-options .filter-item:last-of-type {
        border-bottom: none;
    }

    .filter-options .filter-item::before {
        content: "";
        margin: 0;
    }

    .cs-tab-section .container {
        padding-left: 0px;
        padding-right: 0px;
    }

    .case-study__card.horizontal {
        padding: 10px;
    }

    .case-study__content {
        padding: 10px;
    }

    .mb-40 {
        margin-bottom: 20px !important;
    }

    .tech-stack-grid {
        justify-items: center;
    }

    .case-study__stats {
        flex-direction: column;
        gap: 10px;
    }

    .cs-result__card {
        flex: 0 0 calc(100% - 15px);
    }

    .cs-result-grid {
        gap: 0px;
        row-gap: 15px;
    }

    .cs-secondary__heading-title {
        font-size: 25px;
        line-height: 30px;
    }

    .highlight-box {
        padding: 20px;
        border-radius: 10px;
        box-shadow: 3px 3px 0 #f8e2ea;
    }
}