/*new/old casestudies css merge*/

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    line-height: 1.4;
    background: #f8fafc;
}

.me-casestudies {
    display: flex;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 0 10px 0;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#m_content_wrapper #m_content {
    margin-left: 0px !important;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 0 4px #eee;
}

#category_wrapper .category_quick_description {
    font-size: 16px;
    line-height: 1.5em;
}

#category_wrapper .map {
    position: absolute;
    right: 15px;
    top: 20px;
}

#category_wrapper .category_description_map {
    margin-right: 140px;
}

.column_all {
    padding: 1.25rem;
    margin: 0 auto;
}

    .column_all h1 {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: #111827;
        position: relative;
        padding-bottom: 0.5rem;
    }

    .column_all p {
        line-height: 25px;
    }

.list_item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
    margin: 1rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    padding: 0;
    animation: fadeIn 0.3s ease forwards;
}

    .list_item .thumbnail {
        width: 100%;
        height: 200px;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

        .list_item .thumbnail span {
            display: block;
            width: 100%;
            height: 200px;
            background-size: cover;
            background-position: center;
        }

    .list_item .content {
        padding: 1rem;
    }

    .list_item:hover {
        border-color: rgba(230, 0, 18, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transform: translateY(-2px);
    }

    .list_item .name span {
        position: relative;
        display: inline-block;
    }

        .list_item .name span::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: #e60012;
            transition: width 0.2s ease;
        }

    .list_item:hover .name span::after {
        width: 100%;
    }

    .list_item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 0;
        background: linear-gradient(to bottom, #e60012, #ff1a1a);
        transition: height 0.2s ease;
    }

    .list_item:hover::before {
        height: 100%;
    }

.column_1 {
    flex: 0 0 200px;
    position: relative;
}

.column_2 {
    flex: 1;
    min-width: 0;
    padding-left: 0.5rem;
}

a.thumbnail {
    display: block;
    width: 100%;
    height: 130px;
    overflow: hidden;
    border: none;
    margin: 0;
    position: relative;
}

    a.thumbnail span {
        display: block;
        width: 100%;
        height: 130px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% auto;
        transition: transform 0.3s ease;
    }

    a.thumbnail::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1));
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    a.thumbnail:hover::after {
        opacity: 1;
    }

.margin-top-1 {
    margin-top: 1.5rem;
}

.list_item:hover a.thumbnail span {
    transform: scale(1.05);
}

.list_item:hover a.thumbnail::after {
    opacity: 1;
}

.list_item .name a {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.2;
    display: inline-block;
    position: relative;
}

    .list_item .name a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: #e60012;
        transition: width 0.2s ease;
    }

    .list_item .name a:hover {
        color: #e60012;
    }

        .list_item .name a:hover::after {
            width: 100%;
        }

.column_2 .name {
    margin-bottom: 0.5rem;
}

.list_item .location {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0.25rem 0 0.5rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list_item .description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #4b5563;
}

#hero_wrapper {
    max-width: 1000px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero_slide {
    position: relative;
    width: 100%;
}

.hero_bg_image {
    width: 100%;
    height: auto;
    display: block;
}

#category_wrapper {
    max-width: 1000px;
    padding: 2.4rem;
    background: #eee;
    position: relative;
}

.category_header {
    margin-bottom: 0.75rem;
    line-height: 1.2;
    font-weight: 600;
    color: #111827;
}

.category_description,
.category_description_map {
    font-size: 1rem;
    line-height: 1.4;
    color: #4b5563;
    margin-top: 1rem;
    margin-bottom: 0;
}

.category_description_map {
    margin-right: 180px;
}

#description_wrapper {
    max-width: 1000px;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info table tbody th {
    padding: 5px;
    border-top: #d2d3d0 solid 1px;
    border-left: #d2d3d0 solid 1px;
    font-weight: bold;
    vertical-align: middle;
    text-align: left;
}

b {
    font-weight: bold;
}

.casestudy .pageleft,
.casestudy .page-l {
    padding-right: 35px;
    padding-bottom: 10px;
    float: left;
    min-height: 1px;
}

.casestudy .pageright,
.casestudy .page-r {
    padding-left: 35px;
    padding-bottom: 10px;
    float: right;
    min-height: 1px;
}

.w100 {
    width: 100px;
}

.w150 {
    width: 150px;
}

.w200 {
    width: 200px;
}

.w250 {
    width: 250px;
}

.w300 {
    width: 200px;
}

.casestudy .caveat i, .casestudy p.caveat {
    font-size: .9rem !important;
    line-height: 12px;
    font-style: italic;
    color: #888 !important;
    margin-top: 0.5rem !important;
}

.casestudy ul:not(.fa-ul) {
    list-style: square;
    margin-bottom: 5px;
    margin-top: 1em;
}

.casestudy ul li {
    margin-left: 1rem;
    line-height: 150%;
    margin-bottom: 1em;
    list-style-position: outside;
}

    .casestudy ul li b, .casestudy .section p b {
        font-weight: bold;
    }

.casestudy .section p b {
    font-size: 1.2rem;
}

.casestudy .green {
    color: green !important;
}

.casestudy .section p.bold {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
}

.casestudy .section img.fullwidth {
    display: block;
    margin: 1rem auto 1.2rem;
    width: auto;
    max-width: 100%;
    text-align: center;
}

#residential-casestudies .casestudy .section {
    padding: 1.5rem;
}

.casestudy .section:first-child,
.casestudy .section:last-child {
    width: 920px;
    margin: 0 auto;
    padding: 1rem 2.5rem 1rem 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to bottom, #ffffff, #fafafa);
}

.info_wrapper .casestudy .section:first-child {
    margin: initial;
    padding: initial;
    border-bottom: initial;
    background: initial;
}

.casestudy .section .centre, .casestudy .col-md-12 img {
    margin-bottom: 2rem;
}

.casestudy .section:last-child {
    padding: 10px 0 10px 3rem;
    border-bottom: none;
}

.casestudy .section h2 {
    font-size: 1.7rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.4rem;
    margin-bottom: .6rem;
    line-height: 1.4;
    position: relative;
    text-align: left;
}

.casestudy .section h3 {
    font-size: 1.7rem;
}

.casestudy .section h4 {
    font-size: 1.2rem;
}

.casestudy .section h3,
.casestudy .section h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: .6rem;
    margin-top: 1.5rem;
    line-height: 1.3;
    position: relative;
    text-align: left;
}

.casestudy .equipment {
    position: relative;
    margin: 10px 10px 10px 0;
}

    .casestudy .equipment.double {
        width: 460px;
    }

    .casestudy .equipment p {
        font-size: 14px !important;
        margin-top: 0.5em;
    }

.casestudy .section p {
    font-size: 1rem;
    line-height: 1.5;
    color: #1F1F1F;
}

.casestudy .third_width {
    float: left;
    width: 360px;
    position: relative;
    margin: 10px 10px 10px 0;
}

    .casestudy .third_width.double {
        width: 460px;
    }

    .casestudy .third_width h3, .casestudy .third_width h2, .casestudy .equipment h3, .casestudy .equipment h2 {
        font-size: 16px !important;
        margin-bottom: .2rem;
        font-weight: bold;
        border-left: none !important;
        padding-left: 0px !important;
    }

    .casestudy .third_width p {
        font-size: 15px !important;
        margin-top: 0.5em !important;
        margin-bottom: .2rem;
    }

.casestudy .section .third_width h3 {
    font-size: 1rem;
}

.casestudy .section .fa-ul {
    margin-left: 1rem;
}

    .casestudy .section .fa-ul > li {
        padding-left: 1rem;
        margin-bottom: 1rem;
    }

.equipment h3:first-child + br {
    display: none;
}

.gallery-wrapper.no-border-top.slides-container.slides-nav-inside {
    padding: 2rem 0 3rem 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#slides-casestudy {
    display: flex;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
    width: 100%;
}

    #slides-casestudy .slide {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
        transition: all 0.4s ease;
        position: relative;
    }

        #slides-casestudy .slide:not(.active) {
            filter: blur(4px);
            opacity: 0.6;
            transform: scale(0.85);
        }

        #slides-casestudy .slide.active {
            opacity: 1;
            filter: blur(0);
            transform: scale(1);
            z-index: 5;
        }

    #slides-casestudy .me-scale img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

.gallery-wrapper .slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
}

    .gallery-wrapper .slide-arrow.prev {
        left: 10px;
    }

    .gallery-wrapper .slide-arrow.next {
        right: 10px;
    }

.gallery-wrapper .slide-dots {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
    gap: 8px;
    z-index: 10;
}

    .gallery-wrapper .slide-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(0,0,0,0.3);
        cursor: pointer;
    }

        .gallery-wrapper .slide-dots .dot.active {
            background: rgba(0,0,0,0.8);
        }

.std_button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(to right, #e60012, #ff1a1a);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    border: none;
    position: relative;
    overflow: hidden;
}

    .std_button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(230, 0, 18, 0.2);
    }

    .std_button::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .std_button:hover::after {
        transform: translateX(100%);
    }

.section sup, .section .sup {
    line-height: 1em;
    font-size: .7em;
    vertical-align: super;
    text-decoration: none;
}

.center {
    text-align: center;
}

.info_wrapper .casestudy .section {
    background: none !important;
}

.info_wrapper .casestudy {
    max-width: inherit;
    padding-bottom: 2rem;
}

#residential-casestudies .info_wrapper {
    padding: 10px 0 10px 1rem;
}

.info_wrapper {
    padding: 10px 0 10px 3rem;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .info_wrapper li i {
        font-size: 14.5px;
        color: #333333ba;
        padding: 0 5px 0 5px;
    }

    .info_wrapper h3 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #111827;
        margin-bottom: 1.5rem;
        margin-top: 1.5rem;
    }

    .info_wrapper .casestudy ul li {
        margin-left: 0rem;
    }

    .info_wrapper .me-thumb:not(.me-btn img) {
        margin-left: 1rem;
    }

    .info_wrapper .me-thumb {
        display: inline-block;
        background: #f8fafc;
        border: 1px solid #edf2f7;
        border-radius: 8px;
        padding: 1rem;
        transition: all 0.2s ease;
    }

    .info_wrapper .me-btn {
        text-decoration: none;
        display: block;
        text-align: center;
    }

        .info_wrapper .me-btn img {
            max-width: 250px;
            height: auto;
            border-radius: 4px;
            margin-bottom: 0.75rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .info_wrapper .me-btn div {
            color: #111827;
            font-size: 0.8rem;
            line-height: 1.4;
        }

        .info_wrapper .me-btn i {
            color: #6b7280;
            font-style: italic;
            font-size: 0.8rem;
        }

    .info_wrapper .me-thumb:hover {
        color: #ff1a1a;
    }

.row--fullwidth {
    display: flex;
    flex-wrap: wrap;
}

.right {
    text-align: right;
    padding: 5px;
}

.medium {
    font-size: .9rem;
    line-height: 1.5em;
    color: #58595b;
    font-weight: normal;
}

.me-date-nav-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin: 20px 0;
    clear: both !important;
    box-sizing: border-box !important;
}

.me-published-date {
    font-style: italic !important;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.me-nav-buttons {
    display: flex !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.me-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 14px !important;
    padding: 6px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    transition: all 0.2s ease !important;
}

    .me-nav-link:hover {
        background-color: #f5f5f5 !important;
        border-color: #ccc !important;
    }

.me-prev .fas {
    margin-right: 5px !important;
}

.me-next .fas {
    margin-left: 5px !important;
}

.me-casestudies .casestudy .section p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.me-casestudies .casestudy .section h2 {
    font-size: 1.8rem;
}

.me-casestudies .casestudy .section h3 {
    font-size: 1.7rem;
}

.me-casestudies .casestudy .section h4 {
    font-size: 1.5rem;
}

.me-casestudies .category_header {
    font-size: 2rem;
}

.me-casestudies .casestudy ul li {
    font-size: 1.1rem;
    line-height: 1.6;
}

.me-casestudies #hero_wrapper,
.me-casestudies #category_wrapper,
.me-casestudies #description_wrapper,
.me-casestudies .info_wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: inherit;
}

.me-casestudies #hero_wrapper {
    width: 100%;
    max-width: inherit;
}

.me-casestudies #hero_wrapper {
    width: inherit;
}

.me-casestudies .column_all {
    margin: 0;
    width: 100%;
}

.me-casestudies .list_item {
    display: block;
    margin: 0.75rem;
    float: left;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#residential-casestudies.me-casestudies .list_item {
    width: calc(33% - 1.3rem);
}

#commercial-casestudies.me-casestudies .list_item {
    width: calc(33% - 1.5rem);
}

.me-casestudies .list_item:before {
    display: none;
}

.me-casestudies .list_item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.me-casestudies .list_item .column_1 {
    width: 100%;
}

.me-casestudies .list_item .column_2 {
    padding: 1rem;
    width: 100%;
}

.me-casestudies .list_item .name {
    margin-bottom: 0.75rem;
}

    .me-casestudies .list_item .name a {
        font-size: 1.1rem;
        font-weight: 600;
        color: #111827;
        text-decoration: none;
        display: block;
    }

.me-casestudies .list_item .location {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.me-casestudies .list_item .description {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

#casestudies {
    padding: 3rem 0;
    background-color: #f5f5f5;
}

    #casestudies .me-title {
        font-size: 2.5rem;
        color: #1a1a1a;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    #casestudies h2 {
        font-size: 1.8rem;
        color: #1a1a1a;
        margin: 2rem 0;
        padding-bottom: 0.75rem;
        border-bottom: 3px solid #e60012;
        display: inline-block;
    }

    #casestudies .grid-fluid {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

.section .grid-fluid {
    margin-top: 1rem;
}

#casestudies .row {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
    padding-bottom: 2rem;
}

#casestudies .col-md-4 {
    padding: 1rem;
    width: 33.333%;
}

#casestudies .bg-img-button {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    #casestudies .bg-img-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

#casestudies .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0) 100% );
    color: white;
}

#casestudies .card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

#casestudies a {
    text-decoration: none;
    color: inherit;
    display: block;
}

#casestudies * {
    transition: all 0.3s ease;
}

#casestudies .category-section {
    margin-bottom: 3rem;
}

#casestudies .section-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#casestudies .bg-img-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.4) 100% );
    opacity: 1;
    transition: opacity 0.3s ease;
}

#casestudies .bg-img-button:hover::before {
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.5) 100% );
}

.casestudies .casestudy-nav {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.casestudies .nav-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.casestudies .nav-item {
    padding: 8px 12px;
    text-decoration: none;
    font-size: .9rem;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .casestudies .nav-item:hover {
        color: #ec1c24;
        text-decoration: none;
    }

    .casestudies .nav-item.active {
        color: #2c70b8;
        font-weight: 600;
        position: relative;
    }

        .casestudies .nav-item.active:after {
            content: '';
            position: absolute;
            bottom: -11px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #2c70b8;
        }

.casestudies .nav-divider {
    color: #ddd;
    margin: 0 5px;
}

.casestudies .nav-dropdown {
    position: relative;
}

.casestudies .dropdown-toggle .fa-chevron-down {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.casestudies .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    width: 250px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
    margin-top: 10px;
}

.casestudies-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    position: relative;
}

.expandable_icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 9px;
    border-bottom: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.casestudies-dropdown:hover .expandable_icon {
    transform: rotate(-135deg);
}

.dropdown-items {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 100%;
    min-width: 250px;
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.casestudies-dropdown:hover .dropdown-items {
    display: block;
}

.dropdown-items li {
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0;
}

    .dropdown-items li:last-child {
        border-bottom: none;
    }

.dropdown-items a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

    .dropdown-items a:hover {
        background-color: #f5f5f5;
        color: #ec1c24;
    }

    .dropdown-items a.selected {
        color: #2c70b8;
        font-weight: 600;
        background-color: #f0f7ff;
    }

.casestudies .tags {
    flex-direction: column;
    margin-bottom: 20px;
}

.casestudies .filter-label {
    margin-bottom: 8px;
    font-weight: 500;
}

.casestudies .tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.casestudies .tag-item {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    cursor: pointer;
}

    .casestudies .tag-item:hover {
        background-color: #e0e0e0;
    }

    .casestudies .tag-item.active {
        background-color: #2c70b8;
        color: white;
        border-color: #2c70b8;
    }

/* Responsive Breakpoints */
@media (max-width: 992px) {
    #casestudies .col-md-4 {
        width: 50%;
    }

    #residential-casestudies.me-casestudies .list_item,
    #commercial-casestudies.me-casestudies .list_item {
        width: calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    #casestudies .col-md-4 {
        width: 100%;
    }

    #casestudies .bg-img-button {
        height: 200px;
    }

    #casestudies .me-title {
        font-size: 2rem;
    }

    #casestudies h2 {
        font-size: 1.5rem;
    }

    img.fullwidth {
        width: auto;
        text-align: center;
    }

    .list_item {
        flex-direction: column;
        gap: 0.1rem;
        padding: 0.75rem;
    }

    .me-casestudies .casestudy .section h3 {
        font-size: 1.4rem !important;
        margin-bottom: .5rem;
    }

    .me-casestudies .casestudy .section h4 {
        font-size: 1.2rem !important;
    }

    .column_1, .column_2 {
        flex: 0 0 0px;
    }

    a.thumbnail {
        height: 160px;
    }

    .column_all h1 {
        font-size: 1.3rem;
    }

    .list_item .name a {
        font-size: 1rem;
    }

    #category_wrapper {
        padding: 1rem;
    }

    .category_description_map {
        margin-right: 0;
    }

    .casestudy .section {
        padding: 1rem;
    }

        .me-casestudies .category_header, .casestudy .section h2, .casestudy .section h3 {
            font-size: 1.5rem !important;
        }

        .casestudy .section:last-child {
            margin: 0px;
            padding: 10px 0 0 15px !important;
        }

    .info_wrapper {
        padding: 10px 0 0 0 !important;
    }

    .casestudies .nav-item {
        padding: 8px 0;
    }

    .casestudies .nav-divider {
        display: none;
    }

    .casestudies .nav-item.active:after {
        bottom: 0;
    }

    .casestudies .nav-container {
        margin: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .info_wrapper .me-thumb {
        margin-left: 0rem;
    }

    .casestudies .nav-item.active:after {
        bottom: 2px;
    }

    .casestudy .section:first-child,
    .casestudy .section:last-child {
        width: 100%;
    }

    .casestudy .section h2 {
        font-size: 1.1rem;
        margin-bottom: 0rem;
    }

    #category_wrapper .map {
        top: auto;
    }

    .casestudy .section h3 {
        font-size: 1rem;
    }

    .casestudy .section p {
        font-size: 0.85rem;
    }

    .casestudy .section .fa-ul {
        margin-left: .3rem;
    }

        .casestudy .section .fa-ul > li {
            padding-left: .4rem;
        }

    .me-casestudies .casestudy ul li {
        font-size: 1rem !important;
    }

    .casestudy .section .fa-ul > li {
        margin-top: 0rem;
        margin-bottom: .7rem;
    }

    .casestudy .pageright, .casestudy .page-r {
        padding-left: 0px;
        float: none;
        text-align: center;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .info_wrapper .me-thumb {
        display: block;
        text-align: center;
        margin: 0 auto 1rem auto;
    }

    #residential-casestudies.me-casestudies .list_item,
    #commercial-casestudies.me-casestudies .list_item {
        width: calc(100% - 1.5rem);
    }
}

@media (max-width: 576px) {
    .me-casestudies {
        padding: 0;
    }

    #residential-casestudies.me-casestudies .list_item,
    #commercial-casestudies.me-casestudies .list_item {
        width: calc(100% - 1.5rem);
    }
}

@media (max-width: 480px) {
    .me-date-nav-row {
        margin-top: 0.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .me-published-date {
        margin-bottom: 1rem;
    }

    .me-nav-buttons {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .me-casestudies .casestudy .section p {
        color: #000000ed;
        font-size: 1.07rem !important;
    }
}

@media print {
    #hero_wrapper,
    #description_wrapper,
    .info_wrapper,
    #category_wrapper {
        box-shadow: none;
        border: none;
    }

    .std_button {
        display: none;
    }
}
