/* Case Study Hero Section */

.case-study-hero-section {
background: linear-gradient(0deg, #f8fafc, #e0f2fe);
position: relative;
overflow: hidden;
}
.case-study-hero-section h2 {
font-weight: 700;
font-size: 2.5rem;
margin-bottom: 20px;
}
.case-study-hero-section p {
color: #666;
font-size: 1rem;
}
.case-study-hero-section .images-devices img {
max-width: 100%;
border-radius: 10px;
box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
}
.vertical-text {
position: absolute;
left: 4%;
top: 100%;
transform: rotate(-90deg) translateY(-50%);
transform-origin: left top;
font-size: 4rem;
font-weight: 700;
color: rgba(0,0,0,0.05);
letter-spacing: 10px;
user-select: none;
}


/* Case Study Cards */
.case-study-card-section {
background: linear-gradient(0deg, #f8fafc);
}

.case-study-card {
display: flex;
flex-direction: column;
justify-content: space-between;
text-align: center;
border-radius: 12px;
}

.case-link {
text-decoration: none;
color: inherit;
display: block;
}

.case-link:hover .case-title {
color: var(--dark);
}

.case-link img {
transition: transform 0.3s ease;
}


.case-study-card .case-title {
font-weight: bold;
font-size: 1.2rem;
}

.case-study-card .card-stats {
padding-top: 20px;
border-top: 1px solid var(--gray);
}

.row.g-4 {
display: flex;
flex-wrap: wrap;
justify-content: center; /* centers the last row */
}

.case-study-card img {
max-height: 200px;
object-fit: contain;
}

.case-description {
flex-grow: 1;
text-align: start;
margin: 15px 0;
overflow: hidden;
color: var(--gray);
}

.card-stats {
margin-top: auto; /* Push stats to the bottom */
padding-top: 15px;
border-top: 1px solid #eee;
}

.case-study-category {
    display: inline-block;
    border-radius: 20px;
    background-color: var(--primary);
    color: var(--white);
    width: auto;
    padding: 5px 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Project details Section */
.project-details-hero-section {
    background: linear-gradient(0deg, #f8fafc, #e0f2fe);
    /* padding-top: 6rem;
    padding-bottom: 6rem; */
    padding: 8rem 8rem 4rem 8rem;
}

.project-details-hero-section .title {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 20px;
}

.project-details-hero-section .descrption {
    width: 70%;
    margin: auto;
    color: var(--gray);
    font-size: 1.1rem;
}
  
.about-project-details h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    font-weight: 600;
}

.about-project-details .description {
    color: var(--gray);
    font-size: 1.1rem;
}

.about-project-details .row p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
}

.about-project-details i {
    color: var(--secondary);
}


/* Challenge Section */
  
  .challenge-title {
    font-weight: 700;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
  }
  
  .challenge-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 50%;
    height: 10px;
    background-color: var(--primary, #00bcd4); /* fallback color */
    opacity: 0.3;
    z-index: 1;
  }
  
  .challenge-desc {
    font-size: 1rem;
    color: var(--gray, #555);
    margin-top: 0.5rem;
  }

  .challenge-list {
    counter-reset: challenge-counter; /* reset numbering */
  }
  
  .challenge-item {
    position: relative;
    padding-left: 50px; /* space for number */
    margin-bottom: 4rem;
  }
  
  .challenge-item::before {
    counter-increment: challenge-counter;
    content: counter(challenge-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 60px;
    font-weight: bold;
    color: var(--primary); /* blue gradient style */
  }

/* Solutions Section */
  
  .solutions-title {
    font-weight: 700;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
  }
  
  .solutions-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 50%;
    height: 10px;
    background-color: var(--primary, #00bcd4); /* fallback color */
    opacity: 0.3;
    z-index: 1;
  }
  
  .solutions-desc {
    font-size: 1rem;
    color: var(--gray, #555);
    margin-top: 0.5rem;
  }

  .solutions-list {
    counter-reset: solutions-counter; /* reset numbering */
  }
  
  .solutions-item {
    position: relative;
    padding-left: 50px; /* space for number */
    margin-bottom: 4rem;
  }
  
  .solutions-item::before {
    counter-increment: solutions-counter;
    content: counter(solutions-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 60px;
    font-weight: bold;
    color: var(--primary); /* blue gradient style */
  }
  
  
  

@media (max-width: 1024px) {
.case-study-hero-section .images-devices img {
    max-width: 70%;
    margin: 25px;
}
}


@media (max-width: 576px) {
.case-study-hero-section .images-devices img {
    max-width: 88%;
    margin: 25px;
}
}