* {
  font-family: latoregular;
  letter-spacing: normal;
}

.AV-brand .leading-brands {
  margin-bottom: 5%;
}

section.AV-blue-box {
  width: 100%;
  border-radius: 0%;
}

section.AV-brand {
  padding: 0;
  display: none !important;
}

section.AV-details {
  padding: 0;
}

h1.AV-box-heading {
  font-size: 36px;
  color: #333;
  text-align: center;
  margin: 0 auto !important;
  padding: 5% 0 2%;
  width: 95%;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
}

p.AV-box-para {
  font-size: 24px;
  color: #555;
  text-align: center;
  margin: 0 auto;
  padding: 2% 0;
  width: 95%;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
}

.AV-box-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 40px 20px;
  width: 95%;
  padding-top: 2%;
}

.AV-info-box {
  background: #fff;
  padding: 24px;
  border: 1px solid #ccc;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0s ease;
}

.AV-info-box:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.AV-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

h2.AV-heading {
  margin: 2rem !important;
  font-size: 2.7rem;
  color: #333;
  transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1s ease;
}

.AV-logo {
  width: 20%;
  height: auto;
}

.AV-brand .leading-heading::after {
  left: 50.5%;
  width: 19%;
}

/* Description Styling */
.AV-description {
  margin-top: 16px;
  font-size: 1.8rem;
  color: #555;
  line-height: 1.6;
  transition: transform 1s ease, opacity 1s ease, margin-top 1s ease;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* Initially clamp to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 8.6em;
  opacity: 1;
  /* Initially visible with truncated lines */
  transform: translateY(0);
  /* Starts at normal position */
}

/* "Know More" Link Styling */
.AV-know-more {
  margin-top: auto;
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.1s, transform 1s ease 0.1s;
  pointer-events: none;
  display: none;
}

/* Hover effect on .AV-info-box */
.AV-info-box:hover .AV-top-row {
  transform: translateY(-30px);
  /* Heading moves up */
  opacity: 0;
  /* Heading fades out */
}

.AV-info-box:hover .AV-heading {
  transform: translateY(-100%);
  /* Move heading fully out of view */
  opacity: 0;
  /* Heading disappears */
}

.AV-info-box:hover .AV-description {
  opacity: 1;
  transform: translateY(-50px);
  max-height: none;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  margin-top: 16px;
  overflow: visible;
}

.AV-info-box:hover .AV-know-more {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* carousel image  */
.item.AV-casestudyimg {
  background-image: url(https://techsevin.com/wp-content/uploads/2025/04/sultan.png);
  width: 100%;
  height: auto;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.item.AV-traveltourism {
  background-image: url(https://techsevin.com/wp-content/uploads/2025/04/Aireo-1.png);
  width: 100%;
  height: 584px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.item.AV-beautycare {
  background-image: url(https://techsevin.com/wp-content/uploads/2025/04/colorbar-1.png);
  width: 100%;
  height: 584px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

section.groceryslider {
  padding-top: 4%;
  padding-bottom: 4%;
  position: relative;
  margin-bottom: 0;
}

button.casestudybtn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background: white;
  color: #333;
  text-decoration: none;
  font-weight: normal;
  border-radius: 25px;
  overflow: hidden;
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
  box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.2);
  outline: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 77%;
  left: 5.5%;
  z-index: 1;
  text-transform: capitalize;
}
button.grocerybtn{
  text-transform: capitalize;
}
button.casestudybtn:hover {
  background: #414a56;
  color: white;
  box-shadow: 0 0 15px rgba(64, 198, 214, 0.7);
  text-decoration: none;
}


/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 992px) {
  .AV-box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .AV-box-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (min-width: 1441px) and (max-width: 1920px) {
  .AV-box-grid {
    max-width: 80%;
  }

  h1.AV-box-heading {
    text-align: center;
    margin: auto !important;
    padding: 0;
    width: 85%;
  }

  p.AV-box-para {
    margin: auto;
    padding: 2%;
    text-align: center;
    font-size: 28px;
  }

  section.AV-details {
    padding-top: 5%;
  }

  .AV-brand .leading-heading::after {
    width: 13% !important;
  }

  button.casestudybtn {
    top: 79%;
    left: 6%;
    padding: 18px 30px;
    font-size: 22px;
  }
}

@media only screen and (min-width: 1367px) and (max-width: 1440px) {
  .AV-brand .leading-heading::after {
    width: 18% !important;
  }
  button.casestudybtn {
    top: 77%;
    left: 5.5%;
    padding: 14px 26px;
  }
  p.AV-box-para{
    padding: 0;
  }
}

@media only screen and (min-width: 821px) and (max-width: 1024px) {
  h1.AV-box-heading {
    font-size: 34px;
    text-align: center;
    width: 90%;
    margin: auto !important;
  }

  .AV-brand .leading-heading {
    font-size: 34px !important;
  }

  .AV-brand .leading-heading::after {
    width: 23% !important;
  }

  p.AV-box-para {
    font-size: 26px;
    text-align: center;
    margin: auto;
    padding: 4% 2%;
  }

  .AV-box-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
  button.casestudybtn{
    top: 77%;
    left: 5.5%;
    font-size: 12px;
    padding: 10px 22px;
  }

}

@media only screen and (min-width: 769px) and (max-width: 820px) {
  button.casestudybtn {
    font-size: 12px;
    padding: 8px 9px;
    top: 59%;
    left: 10.5%;
  }

  p.AV-box-para {
    font-size: 22px;
  }

  .AV-description {
    font-size: 2.1rem;
  }

  .AV-brand .leading-heading {
    font-size: 32px !important;
  }

  .AV-brand .leading-heading::after {
    width: 30% !important;
  }

  button.casestudybtn {
    font-size: 12px;
    padding: 8px 9px;
    top: 74%;
    left: 5.5%;
  }

  section.groceryslider {
    padding-bottom: 2%;
    padding-top: 6%;
    margin-top: 15%;
  }

  h1.AV-box-heading {
    font-size: 26px !important;
  }

  p.AV-box-para {
    font-size: 20px;
    width: 85%;
  }

  .AV-brand .leading-heading::after {
    width: 42% !important;
  }

  h2.AV-heading {
    font-size: 24px;
  }

  .AV-description {
    font-size: 20px;
  }

  .AV-info-box:hover .AV-description {
    margin-top: 45px;

  }

  .AV-info-box:hover .AV-top-row {
    display: none;
  }

  .leading-heading {
    margin-bottom: 4%;
  }
}

@media only screen and (min-width: 601px) and (max-width: 768px) {
  h1.AV-box-heading {
    font-size: 32px;
  }

  .AV-logo {
    width: 22%;
    height: 65%;
  }

  .AV-info-box:hover .AV-description {
    margin-top: 45px;
  }

  .AV-info-box:hover .AV-top-row {
    display: none;
  }

  .AV-brand .leading-heading {
    font-size: 32px !important;
  }

  .AV-brand .leading-heading::after {
    width: 30% !important;
  }

  button.casestudybtn {
    font-size: 12px;
    padding: 8px 9px;
    top: 74%;
    left: 6%;
  }

  section.groceryslider {
    padding-bottom: 2%;
    padding-top: 6%;
    margin-top: 15%;
  }

  h1.AV-box-heading {
    font-size: 24px !important;
  }

  p.AV-box-para {
    font-size: 20px;
    width: 90%;
  }

  .AV-description {
    font-size: 20px;
  }

  h2.AV-heading {
    font-size: 22px;
  }

  .leading-heading {
    margin-bottom: 4%;
  }


}

@media only screen and (max-width: 600px) {
  .AV-logo {
    height: auto;
    width: 17%;
  }

  h1.AV-box-heading {
    font-size: 22px !important;
  }

  p.AV-box-para {
    font-size: 14px;
  }

  .AV-brand .leading-heading::after {
    width: 42% !important;
  }

  .AV-brand .brands-logos {
    gap: 11% 0% !important;
    padding: 7% !important;
    margin-bottom: 38% !important;
  }

  h2.AV-heading {
    font-size: 24px;
  }

  .AV-description {
    font-size: 18px;
  }

  button.casestudybtn {
    font-size: 4px;
    padding: 4px 8px;
    top: 65%;
    left: 5.5%;
  }

  section.groceryslider {
    padding-bottom: 0%;
  }

  .AV-info-box {
    height: 240px;
  }

  .AV-box-grid {
    width: 85%;
  }

  .AV-info-box:hover .AV-top-row {
    display: none;
  }

  .AV-info-box:hover .AV-description {
    margin-top: 50px;
  }

  .leading-heading {
    margin-bottom: 9%;
  }
}

@media only screen and (min-width: 500px) and (max-width: 540px) {
  button.casestudybtn {
    top: 71%;
  }
  .technology_stack_content{
    padding: 67px;
  }
  .blur-box-icon{
    left: 33%;
  }
}