/* CSS Document */

/* Very Rough CSS - To be revisted */
.case-study-results .hide {
  display: none;
}

.giatec-cs-button {
  display: inline-block;
  float: none;
  margin: 5px;
  color: black;
  background-color: #ebebeb;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
}

.giatec-cs-button.products {
  background-color: rgba(242, 106, 63, 0.5);
  color: white;
}
.giatec-cs-button.products.selected {
  background-color: rgba(242, 106, 63, 0.9);
  color: white;
}
.giatec-cs-button.products:hover {
  background-color: rgba(242, 106, 63, 0.9);
}

.giatec-cs-button.projects.selected {
  color: white;
  background-color: #127F10 ;
}

.giatec-cs-button.projects:hover {
  background: #127F10 ;
  color: white;
  cursor: pointer;
}

.giatec-filter-cs-buttons {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
  display: inline-block;
  text-align: center;
}

.case-study-results {
  margin: 30px auto;
  text-align: center;
}

.case-study-results .thumbnail {
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
}

.elementor-posts-container .elementor-post__thumbnail:hover img {
  -webkit-filter: brightness(85%);
  filter: brightness(85%);

}

.case-study-results .logo {
  display: block;
  position: absolute;
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  border: 2px solid #6cc24a;
  width: 100%;
  height: 100%;
}

.case-study-container {
  display: inline-block;
  vertical-align: top;
  position: relative;
  max-width: 334px;
  height: 350px;
  background: #fff;
  margin: 5px 10px;
  text-align: left;
}

.case-study-container .thumbnail,
.case-study-container .logo {
  width: 100%;
  height: 200px;
  margin-bottom: 5px;
  border-radius: 10px;
}

.case-study-container .title {
  display: inline-block;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  /* height: 65px; */
  color: #127F10 ;
  cursor: pointer;
}

.case-study-container .location {
  display: inline-block;
  width: 100%;
  font-size: 13px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 450;
  text-align: left;
  color: #000;
  margin: 5px 0;
  border-bottom: 2px solid black;
}

.case-study-container .excerpt {
  display: inline-block;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 300;
  text-align: left;
  color: #000;
  font-size: 13px;
  height: 150;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-study-container .read-more {
  color: #6ab644;
  font-weight: 600;
  line-height: 1.5em;
  letter-spacing: 0px;
}

/* --- HERO --- */
/*Project Type and Product link*/

/* --- STATS --- */
.case-study-stats-bar{
  display: flex;
  width: 100%;
  justify-content:center;
}
.case-study-stat{
  flex: 1;
  text-align: center;
  padding: 30px 0 30px 0;
  border-right: 1px solid rgba(222, 222, 222, 0.30980392156862746);
}
.case-study-stat:last-child{
  border-right:none;
}
.case-study-stat__value{
  font-size:40px;
  font-weight:600;
  line-height: 1em;
  color:white;
  padding: 0;
  margin: 0;
  text-align:center;
  white-space:nowrap;
  text-transform: capitalize;
}
.case-study-stat__label{
  font-size:13px;
  font-weight:400;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  text-align:center;
  color:#F0FFEB;
  letter-spacing: 0.08em;
  white-space:normal;
}
@media (max-width: 767px) {
    .case-study-stats-bar {
        flex-direction: column;
    }
    .case-study-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 20px 0;
    }
    .case-study-stat:last-child {
        border-bottom: none;
    }
}
@media (max-width: 1023px) {
  .case-study-stat__value {
    font-size: 28px;
  }
}

/* --- BODY SECTION  --- */
/* Main Content */
body.single-case-study div.case-study-article h2 {
  margin: 48px 0 14px 0;
  padding: 0;
  color: #127F10;
  font-size: 1.75rem;
  font-weight: 600;
  border-bottom: none;
  overflow-wrap: break-word;
  text-align: left;
}
body.single-case-study div.case-study-article h2:first-of-type {
  margin-top: 0;
}

body.single-case-study div.case-study-article p:not(blockquote.wp-block-quote p){
  margin: 0 0 15px 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #555555;
  overflow-wrap: break-word;
}

body.single-case-study div.case-study-article p:last-child {
  margin-bottom: 0;
}

.case-study-article img {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.case-study-article video {
  width: 100%;
  height: auto;
  max-width: 480px; /* optional: prevents an unusually wide portrait video from stretching too large */
  max-height: 560px; /* matches your existing image cap, for consistency */
  display: block;
  margin: 24px auto 0;
}
/* Sidebar */

.case-study-company-logo{
  display:block;
  margin: 0 auto;
  width: 200px !important; 
  height: 120px !important;
  object-fit:contain !important;
}
.case-study-sidebar .side-label p{
  margin:0 !important;
  padding: 0 !important;
  font-size: 0.7rem !important;
  letter-spacing: 1px;
  color: #727272 !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  white-space: normal !important;
}

.case-study-sidebar .side-value p{
  font-size: 15px !important;
  color: black !important;
  font-family:'Lato', sans-serif !important;
  font-weight:600 !important;
  text-align: left !important;
  white-space: normal !important;
}

.case-study-sidebar .side-value a {
  color: #127f10;
  text-decoration: underline;
  font-size: 15px !important;
  font-family:'Lato', sans-serif !important;
  font-weight:600 !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  text-align: left !important;
  white-space: normal !important;
}
.case-study-sidebar .side-value a:hover {
  color:#194F31 !important;
}
/*Company description, cut off*/
.case-study-sidebar .about-description{
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: black;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-study-sidebar .about-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  margin-top: 6px;
  color: #127F10;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.case-study-sidebar .about-toggle.visible {
  display: inline-block;
}
.case-study-sidebar .about-description.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  display: block;
}
.case-study-article table {
  border-right: 1px solid #555555;
}
/* SubHeading Styling Override Class */
.case-study-article h3 {
  display:block;
  color: #127F10;
  font-family: 'Lato', sans-serif;
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1.2;
  margin-block-end: 1rem;
  margin-block-start: 0.5rem;
  text-align: left;
}
/* Table of Contents */

.case-study-sidebar #giatec-jump-to-section-list li {
  margin-bottom: 10px;
}

.case-study-sidebar #giatec-jump-to-section-list a {
  display: block;
  box-sizing: border-box;
  color: #5F5E5A;
  font-weight: 400;
  padding: 4px 0 4px 8px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.case-study-sidebar #giatec-jump-to-section-list a:hover {
  color: #127f10;
}

.case-study-sidebar #giatec-jump-to-section-list a.active {
  color: #127F10;
  font-weight: 700;
  border-left-color: #05C800;
  background: #eaf6e9;
}
.case-study-sidebar #giatec-jump-to-section-list ul.elementor-icon-list-items {
  margin: 0 !important;
}
/* Mobile nav version — simpler treatment */
.case-study-sidebar #giatec-nav-list a.active {
  color: #127F10;
  font-weight: 700;
}
#giatec-secondary-nav {
  top: var(--nav-height) !important;
}

/* ---RELATED CASE STUDIES--- */
.cs-related-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cs-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #D4D4D4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.cs-related-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cs-related-card:hover .cs-related-card__image img {
    transform: scale(1.03);
}

.cs-related-card__no-image {
    width: 100%;
    height: 200px;
    background: #ebebeb;
}

.cs-related-card__content {
    padding: 1rem 1rem 1rem 1rem;
}

.cs-related-card__title {
    margin: 0 0 16px 0 !important;
    color: #127F10 ;
    font-size: 1.563rem;
    font-weight: 400;
    line-height: 1.25em;
}
.cs-related-card:hover .cs-related-card__title {
    color: black !important;
}

.cs-related-card__location {
    font-size: 12px;
    font-weight: 400;
    color: #727272;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px 0 !important;
}
/*
@media (max-width: 1023px) and (min-width: 768px) {
  .case-study-sections .cs-section__image img {
    max-width: clamp(260px, 40vw, 380px);
  }
}*/
/* Tablet - 2 columns, with extra centred*/
@media (max-width: 1023px) and (min-width: 768px) {
    .cs-related-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-related-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 1rem);
        margin: 0 auto;
    }
    
}
/* Mobile - 1 column */
@media (max-width: 767px) {
    .cs-related-cards {
        grid-template-columns: 1fr;
    }
  .cs-related-card__image img{
      height:150px;
    }
    .cs-related-card__no-image {
      height: 150px;
    }
  }