/* =========================================================
   CASE STUDY
========================================================= */

.case-study-page {
    width: 100%;
    background: #ffffff;
    color: #333333;
}

.case-study-container {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.case-study-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #eeeeee;
}

.case-study-hero-image {
    position: absolute;
    inset: 0;
}

.case-study-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.12);

    pointer-events: none;
}

.case-study-hero-content {
    position: relative;

    width: min(1320px, calc(100% - 40px));
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: flex-end;

    padding-bottom: 35px;

    box-sizing: border-box;

    z-index: 2;
}

.case-study-hero-content h1 {
    margin: 0;

    max-width: 900px;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 58px);

    line-height: 1.05;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: -1px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.case-study-breadcrumb-wrap {
    width: 100%;

    border-bottom: 1px solid #eeeeee;

    background: #ffffff;
}

.case-study-breadcrumb {
    min-height: 45px;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    font-size: 11px;

    color: #888888;
}

.case-study-breadcrumb a {
    color: #777777;

    text-decoration: none;

    transition: color 0.2s ease;
}

.case-study-breadcrumb a:hover {
    color: #21499b;
}

.case-study-breadcrumb span {
    color: #999999;
}


/* =========================================================
   GALLERY
========================================================= */

.case-study-gallery-section {
    padding: 40px 0 30px;
}

.case-study-gallery-slider {
    position: relative;

    width: 100%;

    overflow: hidden;
}

.case-study-gallery-slider .swiper-slide {
    height: 275px;

    overflow: hidden;

    border-radius: 4px;
}

.case-study-gallery-image {
    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.case-study-gallery-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.case-study-gallery-image:hover img {
    transform: scale(1.04);
}


/* =========================================================
   GALLERY ARROWS
========================================================= */

.case-study-gallery-prev,
.case-study-gallery-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    width: 30px;
    height: 50px;

    border: 0;

    border-radius: 3px;

    background: #ffffff;

    color: #21499b;

    font-size: 25px;

    line-height: 25px;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.case-study-gallery-prev:hover,
.case-study-gallery-next:hover {
    background: #01c30c;

    color: #ffffff;
}

.case-study-gallery-prev {
    left: 5px;
}

.case-study-gallery-next {
    right: 5px;
}


/* =========================================================
   GALLERY PAGINATION
========================================================= */

.case-study-gallery-pagination {
    margin-top: 20px;

    text-align: center;
}

.case-study-gallery-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;

    margin: 0 4px !important;

    opacity: 0.25;

    background: #21499b;
}

.case-study-gallery-pagination
.swiper-pagination-bullet-active {
    opacity: 1;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.case-study-content-section {
    padding: 50px 0 80px;
}

.case-study-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        435px;

    gap: 70px;

    align-items: start;
}


/* =========================================================
   LEFT
========================================================= */

.case-study-title {
    margin: 0 0 30px;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.1;
    font-weight: 600;
    color: #333333;
    text-transform: capitalize;
    font-family: 'Oswald';
    text-align: center;
}
.pro_table table tr:first-child {
    background: #01c30c;
}
.pro_table table tr:first-child td {
    color: #fff;
    font-family: "Oswald-Medium";
    font-size: 18px;
}
.pro_table table tr:first-child td strong {
    color: #fff;
    font-family: 'Oswald';
    font-weight: 500;
    font-size: 24px;
}
.pro_table table tr td {
    font-size: 20px;
}
/* =========================================================
   WYSIWYG
========================================================= */

.case-study-wysiwyg {
    font-size: 14px;

    line-height: 1.65;

    color: #666666;
}

.case-study-wysiwyg p {
    margin: 0 0 18px;
    font-size:20px;
}

.case-study-wysiwyg h2,
.case-study-wysiwyg h3,
.case-study-wysiwyg h4 {
    color: #333333;

    margin-top: 28px;

    margin-bottom: 12px;
}

.case-study-wysiwyg strong {
    color: #444444;
}

.case-study-wysiwyg img {
    max-width: 100%;
    height: auto;
}

.case-study-wysiwyg table {
    width: 100%;

    border-collapse: collapse;

    margin: 20px 0 25px;

    font-size: 13px;
}

.case-study-wysiwyg th {
    padding: 10px 12px;

    background: #21499b;

    color: #ffffff;

    font-weight: 600;

    text-align: center;
}

.case-study-wysiwyg td {
    padding: 9px 12px;

    border: 1px solid #eeeeee;

    text-align: center;

    vertical-align: middle;
}

.case-study-wysiwyg ul,
.case-study-wysiwyg ol {
    margin: 0 0 20px;

    padding-left: 25px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.case-study-sidebar {
    width: 100%;
}

.case-study-sidebar-box,
.case-study-contact-box {
    width: 100%;

    margin-bottom: 25px;
}


/* =========================================================
   SIDEBAR HEADING
========================================================= */

.case-study-sidebar-heading {
    width: 100%;
    padding: 15px 18px;
    box-sizing: border-box;
    background: #01c30c;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 8px;
    font-family: 'Oswald';
}


/* =========================================================
   RELATED PRODUCT SLIDER
========================================================= */

.related-products-slider {
    width: 100%;
    border: 1px solid #dddddd;
    /* border-top: 0; */
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.related-products-slider .swiper-slide {
    width: 100%;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.related-product-card {
    width: 100%;

    background: #ffffff;

    text-align: center;
}


/* PRODUCT IMAGE */

.related-product-image {
    display: block;

    width: 100%;

    height: 315px;

    overflow: hidden;

    background: #ffffff;
}

.related-product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform 0.4s ease;
}

.related-product-image:hover img {
    transform: scale(1.03);
}


/* PRODUCT CONTENT */

.related-product-content {
    padding: 15px 15px 20px;

    border-top: 1px solid #eeeeee;
}

.related-product-content h3 {
    margin: 0 0 8px;

    font-size: 24px;

    line-height: 1.25;

    font-weight: 500;

    text-transform: uppercase;
}

.related-product-content h3 a {
    color: #333333;

    text-decoration: none;
}

.related-product-description {
    color: #222;

    font-size: 18px;

    line-height: 1.45;
}

.related-product-description p {
    margin: 0;
}


/* =========================================================
   RELATED PRODUCT PAGINATION
========================================================= */

.related-products-pagination {
    padding: 5px 0 15px;

    text-align: center;
}

.related-products-pagination
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;

    margin: 0 4px !important;

    background: #21499b;

    opacity: 0.25;
}

.related-products-pagination
.swiper-pagination-bullet-active {
    opacity: 1;
}


/* =========================================================
   CONTACT BOX
========================================================= */

.case-study-contact-form {
    padding: 15px 0 0;
}

.case-study-contact-form form {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.case-study-contact-form input,
.case-study-contact-form textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dddddd;

    border-radius: 4px;

    background: #ffffff;

    padding: 24px 20px !important;

    font-family: inherit;

    font-size: 18px;

    color: #555555;

    outline: none;
}

.case-study-contact-form input:focus,
.case-study-contact-form textarea:focus {
    border-color: #21499b;
}

.case-study-contact-form textarea {
    min-height: 90px;
    resize: vertical;
    height: 150px !important;
}
.case-study-contact-form input.wpcf7-form-control.wpcf7-submit {
    color: #fff;
    width: auto !important;
    background: #01c30c;
    padding: 8px 25px !important;
    font-family: 'Oswald';
    line-height: 1.5;
    font-size: 24px;
    border-radius: 8px;
}
.case-study-contact-form button {
    align-self: flex-start;

    border: 0;

    border-radius: 4px;

    padding: 11px 22px;

    background: #21499b;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    text-transform: uppercase;

    transition: background 0.25s ease;
}

.case-study-contact-form button:hover {
    background: #173a7c;
}

.case-study-form-note {
    margin: 15px 0 0;

    font-size:14px;

    line-height: 1.5;

    color: #777777;
}


/* =========================================================
   MORE CASE STUDIES
========================================================= */

.more-case-studies-section {
    padding: 60px 0 70px;

    border-top: 1px solid #eeeeee;

    background: #ffffff;
}

.more-case-studies-heading {
    text-align: center;

    margin-bottom: 35px;
}

.more-case-studies-heading h2 {
    margin: 0;

    font-size: 24px;

    line-height: 1.2;

    font-weight: 500;

    color: #333333;

    text-transform: uppercase;
}


/* =========================================================
   MORE CASE STUDIES SLIDER
========================================================= */

.more-case-studies-slider {
    width: 100%;

    overflow: hidden;

    padding: 0 0 50px !important;
}

.more-case-study-card {
    width: 100%;
}


/* IMAGE */

.more-case-study-image {
    display: block;

    width: 100%;

    height: 220px;

    overflow: hidden;

    border-radius: 4px;
}

.more-case-study-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.more-case-study-image:hover img {
    transform: scale(1.04);
}


/* CONTENT */

.more-case-study-content {
    padding-top: 13px;
    padding-left: 10px;
}

.more-case-study-content h3 {
    margin: 0 0 7px;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 500;

    text-transform: uppercase;
}

.more-case-study-content h3 a {
    color: #333333;

    text-decoration: none;
}

.more-case-study-content p {
    margin: 0;

    font-size: 11px;

    line-height: 1.5;

    color: #777777;
}


/* =========================================================
   MORE CASE STUDIES DOTS
========================================================= */

.more-case-studies-pagination {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    text-align: center;
}

.more-case-studies-pagination
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;

    margin: 0 4px !important;

    background: #21499b;

    opacity: 0.2;
}

.more-case-studies-pagination
.swiper-pagination-bullet-active {
    opacity: 1;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .case-study-layout {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .case-study-sidebar {
        max-width: 500px;

        width: 100%;
    }

    .case-study-gallery-slider .swiper-slide {
        height: 240px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .case-study-container {
        width: calc(100% - 30px);
    }


    /* HERO */

    .case-study-hero {
        height: 220px;
    }

    .case-study-hero-content {
        width: calc(100% - 30px);

        padding-bottom: 25px;
    }

    .case-study-hero-content h1 {
        font-size: 28px;
    }


    /* BREADCRUMB */

    .case-study-breadcrumb {
        min-height: 40px;

        font-size: 9px;
    }


    /* GALLERY */

    .case-study-gallery-section {
        padding: 25px 0 20px;
    }

    .case-study-gallery-slider .swiper-slide {
        height: 230px;
    }


    /* CONTENT */

    .case-study-content-section {
        padding: 40px 0 50px;
    }

    .case-study-title {
        font-size: 27px;

        margin-bottom: 20px;
    }

    .case-study-wysiwyg {
        font-size: 13px;
    }


    /* SIDEBAR */

    .case-study-sidebar {
        max-width: none;
    }

    .related-product-image {
        height: 220px;
    }


    /* MORE CASE STUDIES */

    .more-case-studies-section {
        padding: 35px 0 55px;
    }

    .more-case-studies-heading h2 {
        font-size: 19px;
    }

    .more-case-study-image {
        height: 220px;
    }

}

.case-study-contact-form p {
    margin-bottom: 0;
}
.case-study-contact-form .acf-form-row {
    margin-bottom: 0px;
        display: block;
}
.case-study-contact-form .acf-form-row .acf-form-field {
    margin-bottom: 20px;
}