.case_studies_banner_section .banner_button {
    display: none;
}
.case_studies_banner_section .about_banner_row {
    padding-bottom: 2.344vw;
}
.case_studies_section .case_studies_tabbing {
    width: 100%;
    position: relative;
    margin-top: 1.34375vw;
}
.case_studies_section .case_studies_tabbing ul {
    justify-content: center;
    align-items: center;
    gap: 3vw;
}
.case_studies_section .case_studies_tabbing ul li {
    position: relative;
    padding: 0px 10px;
    cursor: pointer;
}
.case_studies_section .case_studies_tabbing ul li a.activelink {
    color: var(--theme-sub-heading-color);
    opacity: 1;
}
.case_studies_section .case_studies_tabbing ul li a {
    color: var(--theme-common-content-color);
    opacity: 0.5;
}
.case_studies_section .case_studies_tabbing ul li a.activelink::before {
    content: "";
    position: absolute;
    bottom: -0.78125vw;
    left: 50%;
    width: 92%;
    height: 4px;
    background-color: var(--theme-sub-heading-color);
    opacity: 1;
    transform: translateX(-50%);
    transition: opacity 0.3s ease-in-out;
    border-radius: 1.04167vw;
    -webkit-border-radius: 1.04167vw;
    -moz-border-radius: 1.04167vw;
    -ms-border-radius: 1.04167vw;
    -o-border-radius: 1.04167vw;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
}

.blog_section.recommendation_section.case_studies_section .blog_listing_row {
    display: none;
}
.blog_section.recommendation_section.case_studies_section .blog_listing_row.active {
    display: flex;
}

.blog_listing_head.case_studies_head {
    justify-content: center;
    align-items: center;
}
.blog_listing_head.case_studies_head .left_heading {
    width: 100%;
}
.blog_listing_head.case_studies_head .left_heading .title_one {
    text-align: center;
}
.blog_listing_head.case_studies_head .left_heading .title_one .title_up {
    justify-content: center;
}
.blog_listing_head.case_studies_head .left_heading .title_one .title_bottom {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.25vw;
    padding-bottom: 20px;
}
@media (max-width: 767px) {
    .blog_listing_head.case_studies_head .left_heading .title_one .title_bottom {
        width: 100%;
    }
}
.blog_section.recommendation_section.case_studies_section .blog_listing_row {
    margin-top: 4.97917vw;
}
.blog_section.recommendation_section.case_studies_section ul.fs-16 {
    font-size: 0.9375vw;
    margin: 0px;
    padding-top: 0px;
}
.blog_section.recommendation_section.case_studies_section .blog_content {
    margin-top: 1.15vw;
}
.client_testimonial_section.recommendation-letter-testimonial.case_studie_client {
    background: #FBFBFB;
    padding-top: 4.42708vw;
    padding-bottom: 3.38542vw;
}
.blog_section.recommendation_section.case_studies_section {
    padding-bottom: 4.27083vw;
}
.blog_section.recommendation_section.case_studies_section .blog_listing_col .banner_button {
    margin-top: 0.7vw;
}
.client_testimonial_section.recommendation-letter-testimonial.case_client_secs {
    background: #FBFBFB;
    padding: 4.16667vw 0px;
}
@media (max-width: 991px) {
.blog_section.recommendation_section.case_studies_section .blog_listing_row {
    margin-top: 7.97917vw;
}
.case_studies_section .case_studies_tabbing {
    margin-top: 3.34375vw;
}
.case_studies_section .case_studies_tabbing ul li a.activelink::before {
    bottom: -1.78125vw;
    height: 3px;
}
    .blog_section.recommendation_section.case_studies_section ul.fs-16 {
    font-size: 16px;
    margin: 0px;
    padding-top: 15px;
}
.client_testimonial_section.recommendation-letter-testimonial.case_studie_client {
    padding-top: 5.42708vw;
    padding-bottom: 5.38542vw;
}
}

@media (max-width: 767px) {
    .case_studies_section .case_studies_tabbing {
        margin-top: 6.34375vw;
    }
    .blog_section.recommendation_section.case_studies_section .blog_listing_row {
        margin-top: 15vw;
    }
    .client_testimonial_section.recommendation-letter-testimonial.case_studie_client {
        padding-top: 8.42708vw;
        padding-bottom: 10.38542vw;
    }
    .blog_section.recommendation_section.case_studies_section {
    padding-bottom: 8.27083vw;
}
}
/* ==========================================================================
   Case study cards (the boxes in the listing).

   Only the boxes change here; the banner, section heading, tabs and
   everything below are untouched.

   The cs_card_* classes are NEW and exist only in load_case_studies_ajax().
   blog_listing_col / blog_img / blog_content are shared with the blog index,
   so nothing below styles them on their own: every selector carries a
   cs_card* class, and the blog cannot be reached by any of it.
   ========================================================================== */

/* 3 across, which is what the covers are drawn for. The row is display:flex
   above (it is toggled with .active for the tab switch), so the grid goes on
   .active to avoid fighting that rule. */
.blog_section.recommendation_section.case_studies_section .blog_listing_row.active {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5625vw;
    align-items: stretch;
}

/* blog.css styles the shared column for its own card with
   .blog_section .blog_listing_col { width: 31.8%; padding: 1.14583vw ...;
   border-radius: 1.04167vw; background: ... } and loads AFTER this file, so a
   two-class selector here would lose every one of those. Three classes take
   the card-level box back without touching the blog, and since a media query
   adds no specificity this single rule also beats blog.css's 991px and 767px
   overrides. Padding is zeroed so the cover sits flush to the card edge; the
   text padding lives on .cs_card_body instead. */
.case_studies_section .blog_listing_col.cs_card {
    width: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(18, 18, 18, .14);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.case_studies_section .blog_listing_col.cs_card:hover {
    box-shadow: 0 14px 34px rgba(42, 44, 91, .13);
    transform: translateY(-3px);
}

/* The covers are 4:3. Fixing the ratio keeps every card the same height even
   if a future cover is uploaded at another size. */
.case_studies_section .cs_card .cs_card_img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E7F2FF;
}
.case_studies_section .cs_card .cs_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.case_studies_section .cs_card:hover .cs_card_img img {
    transform: scale(1.04);
}

/* margin-top on .case_studies_section .blog_content (above) would double the
   padding here, so it is zeroed for the card body only. */
.case_studies_section .cs_card .cs_card_body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin-top: 0;
    padding: 1.35vw 1.45vw 1.5vw;
}

.case_studies_section .cs_card .cs_card_meta {
    display: flex;
    align-items: center;
    gap: 0.55vw;
    margin-bottom: 0.7vw;
    font-size: 0.83333vw;
    font-weight: 400;
    line-height: 1.4;
    color: #64607D;
}
.case_studies_section .cs_card .cs_card_flag {
    flex: none;
    width: 1.35vw;
    min-width: 18px;
    max-width: 24px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .09);
}
/* The country rides on the meta row's own type; the min-width floor keeps it
   legible once the vw sizing bottoms out on small screens, matching the flag's
   own 18px floor so the pair stay in proportion. */
.case_studies_section .cs_card .cs_card_country {
    min-width: 0;
    font-size: inherit;
    font-weight: 400;
    letter-spacing: 0.01em;
}
.case_studies_section .cs_card .cs_card_dot {
    flex: none;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9898B5;
}

.case_studies_section .cs_card .cs_card_title {
    margin-bottom: 0.6vw;
    padding-bottom: 0;
    height: auto;
    font-weight: 500;
    line-height: 1.25;
    color: #2a2c5b;
}

.case_studies_section .cs_card .cs_card_excerpt {
    font-size: 0.9375vw;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.36px;
    color: #313744;
}

/* The link keeps its existing markup and both behaviours: a narrative case
   study goes to its page, the rest still open the gated PDF.

   Five classes, because case-studies.css line 103 already pins
   .blog_section.recommendation_section.case_studies_section .blog_listing_col
   .banner_button at margin-top:0.7vw (0,5,0). Without matching that, the link
   sits directly under the sub-heading and lands at a different height on every
   card. margin-top:auto pushes it to the bottom of the flex column so the
   "Read More" row lines up across the row. */
.blog_section.recommendation_section.case_studies_section .cs_card .banner_button {
    margin-top: auto;
    padding-top: 1.2vw;
}

/* Whole card clickable. The anchor is stretched over the card rather than the
   card being wrapped in a second one, so the gated-PDF handler still receives
   the click and the card stays a single tab stop.

   An absolutely positioned ::after resolves against its nearest POSITIONED
   ancestor, so both the theme's .bg_button (position:relative) and
   .blog_content had to be forced back to static: otherwise the overlay sized
   itself to the 99x19 link, or to the text column, instead of the card. */
.case_studies_section .blog_listing_col.cs_card {
    position: relative;
}
.case_studies_section .cs_card .cs_card_body,
.case_studies_section .cs_card .cs_card_link {
    position: static;
}
.case_studies_section .cs_card .cs_card_link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Text sits above the stretched layer so it stays selectable. */
.case_studies_section .cs_card .cs_card_meta,
.case_studies_section .cs_card .cs_card_title,
.case_studies_section .cs_card .cs_card_excerpt {
    position: relative;
    z-index: 2;
}

.case_studies_section .cs_card .cs_card_link {
    display: inline-flex;
    align-items: center;
    gap: 0.4vw;
}
.case_studies_section .cs_card .cs_card_arrow {
    display: inline-flex;
    transition: transform .2s ease;
}
.case_studies_section .cs_card .cs_card_arrow svg {
    width: 0.99vw;
    min-width: 15px;
    max-width: 19px;
    height: auto;
}
.case_studies_section .cs_card:hover .cs_card_arrow {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .blog_section.recommendation_section.case_studies_section .blog_listing_row.active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .case_studies_section .cs_card .cs_card_body { padding: 18px 18px 20px; }
    .case_studies_section .cs_card .cs_card_meta { gap: 8px; margin-bottom: 10px; font-size: 14px; }
    .case_studies_section .cs_card .cs_card_title { margin-bottom: 8px; }
    .case_studies_section .cs_card .cs_card_excerpt { font-size: 15px; }
    .blog_section.recommendation_section.case_studies_section .cs_card .banner_button { padding-top: 16px; }
    .case_studies_section .cs_card .cs_card_link { gap: 8px; }
}

@media (max-width: 767px) {
    .blog_section.recommendation_section.case_studies_section .blog_listing_row.active {
        grid-template-columns: 1fr;
    }
}
