/*--------------------------------------------------------------
  26. Blog
----------------------------------------------------------------*/

.cs-blog-section-wrapper {
  padding: 4rem 0 2rem 0 !important;
}

@media (min-width: 768px) {
  .cs-blog-content-container {
    margin-top: 4rem !important;
  }
}

.cs-blog-content {
    z-index:10 !important;
  padding: 10px;
}

.cs-blog-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Evenly distribute content */

  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.cs-blog-img-area {
  text-align: center;
}

.cs-blog-title h5 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.cs-blog-excerpt-text {
  flex-grow: 1; /* Ensures it expands to fill space */
  margin-bottom: 20px;
}
.cs-blog-excerpt-text p{
  font-size: 14px;
}

.cs-blog-btn {
  margin-top: auto; /* Pushes the button to the bottom */
}

.cs-blog-btn {
  color: #176b96;
  text-decoration: none;
  font-weight: bold;
}

.cs-blog-section-wrapper.blog-style-1
  .cs-blog-content-container
  .cs-blog-items-container
  .cs-blog-item
  .cs-blog-img-area {
  position: relative;
}
.cs-blog-section-wrapper.blog-style-1
  .cs-blog-content-container
  .cs-blog-items-container
  .cs-blog-item
  .cs-blog-img-area
  .cs-blog-img {
  -webkit-clip-path: polygon(
    10% 0,
    85% 0,
    100% 0,
    100% 90%,
    90% 100%,
    0 100%,
    0% 80%,
    0 10%
  );
  clip-path: polygon(
    10% 0,
    85% 0,
    100% 0,
    100% 90%,
    90% 100%,
    0 100%,
    0% 80%,
    0 10%
  );
  max-width: 630px;
}
.cs-blog-section-wrapper.blog-style-1
  .cs-blog-content-container
  .cs-blog-items-container
  .cs-blog-item
  .cs-blog-img-area
  .cs-blog-img.no-clip-img {
  -webkit-clip-path: none;
  clip-path: none;
}

.cs-blog-section-wrapper.blog-style-1
  .cs-blog-content-container
  .cs-blog-items-container
  .cs-blog-item
  .cs-blog-content
  .cs-blog-title {
  margin-bottom: 10px;
}
.cs-blog-section-wrapper.blog-style-1
  .cs-blog-content-container
  .cs-blog-items-container
  .cs-blog-item
  .cs-blog-content
  .cs-blog-title
  a
  h6 {
  transition: all 0.3s ease;
}
.cs-blog-section-wrapper.blog-style-1
  .cs-blog-content-container
  .cs-blog-items-container
  .cs-blog-item
  .cs-blog-content
  .cs-blog-title
  a:hover
  h6 {
  color: #d40511;
  transition: all 0.3s ease;
}
.cs-blog-section-wrapper.blog-style-1
  .cs-blog-content-container
  .cs-blog-items-container
  .cs-blog-item
  .cs-blog-content
  .cs-blog-title:hover
  h4 {
  color: #d40511;
  transition: all 300ms ease-in-out;
}
.cs-blog-section-wrapper.blog-style-1
  .cs-blog-content-container
  .cs-blog-items-container
  .cs-blog-item
  .cs-blog-content
  .cs-blog-excerpt-text {
  margin-bottom: 25px;
}
.cs-blog-section-wrapper.blog-style-1
  .cs-blog-content-container
  .cs-blog-items-container
  .cs-blog-item
  .cs-blog-content
  .cs-blog-btn
  span {
  margin-right: 5px;
}

@media screen and (max-width: 991px) {
  .cs-single-widget-wrap {
    padding-left: 0px !important;
  }
}
.cs-img-anim-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
}
.cs-img-anim-wrap img {
  position: relative;
  width: 100%;
  object-fit: cover;

  transition: all 0.6s ease;
  background-size: cover;
}

.cs-img-anim-img {
  height: 200px !important;
}
.cs-img-anim-wrap img:nth-child(1) {
  transform: translateX(-50%) scaleX(2);
  opacity: 0;
  filter: blur(0);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}
.cs-img-anim-wrap img:nth-child(2) {
  transform: translateX(0) scaleX(1);
  opacity: 1;
  filter: blur(0);
  height: 100%;
}
.cs-img-anim-wrap .cs_portfolio_img.active img:nth-child(1),
.cs-img-anim-wrap:hover img:nth-child(1) {
  transform: translateX(0) scaleX(1);
  opacity: 1;
  filter: blur(0);
}
.cs-img-anim-wrap .cs_portfolio_img.active img:nth-child(2),
.cs-img-anim-wrap:hover img:nth-child(2) {
  transform: translateX(50%) scaleX(2);
  opacity: 0;
  filter: blur(20px);
  -webkit-clip-path: polygon(
    75% 0%,
    100% 50%,
    75% 100%,
    0% 100%,
    25% 50%,
    0% 0%
  );
  clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
  transition: all 0.5s;
}

@media screen and (max-width: 630px) {
  .cs-blog-items-container .cs-blog-item {
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
  }
}
.cs-item6-cal2 > *:nth-child(-n + 4) {
  padding-bottom: 45px;
}

.cs-item6-cal2 > *:nth-last-child(-n-4) {
  padding-bottom: 0;
}

@media screen and (max-width: 991px) {
  .cs-item6-cal2 > *:nth-child(-n + 5) {
    padding-bottom: 45px;
  }
  .cs-item6-cal2 > *:nth-last-child(-n-1) {
    padding-bottom: 0px;
  }
}



#services::before {
  content: "";
  position: absolute;
  bottom: -1px; 
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0));
  pointer-events: none;
}




#services .shape-4 {
  position: absolute;
  bottom: 161px;
  right: 0;
}
@media (max-width: 1899px) {
  #services .shape-4 {
    bottom: 0;
    right: 0;
    /* width: 14%; */
    z-index: 999;
  }
}
@media (max-width: 767px) {
  #services .shape-4 {
    display: none;
  }
}

.float-bob-y {
  -webkit-animation-name: float-bob-y;
  animation-name: float-bob-y;
  -webkit-animation-duration: 3s;
  animation-duration: 3s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
}

@-webkit-keyframes float-bob-y {
  0% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  50% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
  100% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
}
@keyframes float-bob-y {
  0% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  50% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
  100% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
}

#services .shape-3 {
  top: 50px;
  left: 0;
}
@media (max-width: 1600px) {
  #services .shape-3 {
    width: 10%;
  }
}
@media (max-width: 1199px) {
  #services .shape-3 {
    display: none;
  }
}

.cs-blog-btn {
    position: relative;
    display: inline-block;

    font-size: 16px; /* Adjust font size as needed */
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .cs-blog-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px; /* Thickness of the underline */
    background-color: #FFF; /* Underline color */
    transition: width 0.3s ease;
  }
  
  .cs-blog-btn:hover {
    color: #fff; /* Change text color on hover */
  }
  
  .cs-blog-btn:hover::after {
    width: 100%; /* Full underline on hover */
  }
  


  .marquee-wrapper-2 {
    overflow: hidden; /* Hide content outside the container */
    white-space: nowrap; /* Prevent line breaks */
    background-color: #0F6C95 !important; /* Background color */
    padding: 15px 0; /* Padding */
    position: relative; /* To control the position of text */
}

.marquee-text {
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    top: 5px;
    color: #FFFFFF;
    text-transform: uppercase;
    position: absolute; /* Ensure it's positioned from the left */
    left: 100%; /* Start from the far right */
    animation: marquee 17s linear infinite; /* Smooth scrolling animation */
}

@keyframes marquee {
    0% {
        left: 100%; /* Start from the extreme right */
    }
    100% {
        left: -100%; /* Move to the extreme left */
    }
}


.cs-blog-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cs-blog-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to top right, #176b96, #0F6C95);  /* Default gradient */
    transition: width 0.3s ease;  /* Smooth transition for width */
    z-index: 0; /* Make sure it's behind the content */
    
}

.cs-blog-item:hover::before {
    width: 100%;  /* On hover, the gradient fills the entire element */
    color: white !important;
}

.cs-blog-item:hover .cs-blog-content {
    color: white !important; /* Apply color change */
}
.cs-blog-item:hover .cs-blog-content .cs-blog-title h5 {
    color: white !important; /* Apply color change */
}
.cs-blog-item:hover .cs-blog-btn {
    color: white !important; /* Apply color change */
}


@-webkit-keyframes fadeInLeft {
    0% {
      opacity: 0;
      -webkit-transform: translateX(-20px);
      transform: translateX(-20px);
    }
  
    100% {
      opacity: 1;
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }
  }
  
  @keyframes fadeInLeft {
    0% {
      opacity: 0;
      -webkit-transform: translateX(-20px);
      -ms-transform: translateX(-20px);
      transform: translateX(-20px);
    }
  
    100% {
      opacity: 1;
      -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
      transform: translateX(0);
    }
  }
  
  .fadeInLeft {
    -webkit-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
  }
  

  #services .shape-1 {
    position: absolute;
    bottom: 0;
    left: 0;
}





/* Style for the close button */
.custom-btn-close2 {
  background-color: transparent; /* Transparent background */
  border: none; /* Remove border */
  font-size: 1.5rem; /* Increase the size */
  color: #333; /* Default color (dark gray) */
  padding: 0.5rem; /* Add some padding */
  cursor: pointer; /* Show pointer cursor */
  transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

/* Hover and focus effects */
.custom-btn-close2:hover,
.custom-btn-close2:focus {
  color: #0f6c95; /* Change color on hover (red) */
  transform: scale(1.5); /* Slightly enlarge on hover */
}

/* Additional focus outline */
.custom-btn-close2:focus {
  outline: 2px solid #0f6c95; /* Red focus outline */
  outline-offset: 2px;
}

/* Alignment for better placement */
.custom-btn-close2 {
  position: absolute; /* Allow precise positioning */
  top: 3rem; /* Adjust top placement */
  right: 1rem; /* Adjust right placement */
}


