@import url('https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600,700,800');

.blog-slider {
  width: 95%;
  position: relative;
  max-width: 1200px;
  margin: 50px auto;
  background: #fff;
  box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2);
  padding: 25px;
  border-radius: 25px;
  height: 400px;
  transition: all .3s;
  overflow: visible;
}

@media screen and (max-width: 992px) {
  .blog-slider {
    max-width: 680px;
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .blog-slider {
    min-height: 500px;
    height: auto;
    margin: 50px auto;
  }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
  .blog-slider {
    height: 350px;
  }
}

.blog-slider__item {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .blog-slider {
    height: auto;
    min-height: 500px;
    padding: 25px;
  }
  
  .blog-slider__item {
    flex-direction: column;
  }
}

.blog-slider__img {
  width: 300px;
  flex-shrink: 0;
  height: 300px;
  box-shadow: 4px 13px 30px 1px rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  transform: translateX(150px);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.blog-slider__img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(147deg, #667eea 0%, #764ba2 74%);
  border-radius: 20px;
  opacity: 0.6;
}

@media screen and (max-width: 768px) {
  .blog-slider__img {
    transform: translateY(-50px) !important;
    width: 100%;
    height: 250px;
    margin-bottom: 0;
    position: relative;
    margin-top: -50px;
  }
}

@media screen and (max-width: 576px) {
  .blog-slider__img {
    width: 95%;
  }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
  .blog-slider__img {
    height: 270px;
  }
}

.blog-slider__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: all .3s;
}

.blog-slider__content {
  padding-right: 25px;
}

@media screen and (max-width: 768px) {
  .blog-slider__content {
    margin-top: 20px;
    text-align: right;
    padding: 0 20px;
  }
}

@media screen and (max-width: 576px) {
  .blog-slider__content {
    padding: 0;
  }
}

.blog-slider__code {
  color: #7b7992;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-weight: 500;
}

.blog-slider__code i {
  margin-left: 5px;
}

.blog-slider__title {
  font-size: 24px;
  font-weight: 700;
  color: #0d0925;
  margin-bottom: 20px;
}

.blog-slider__text {
  color: #4e4a67;
  margin-bottom: 30px;
  line-height: 1.5em;
}

.blog-slider__button {
  display: inline-flex;
  background-image: linear-gradient(147deg, #667eea 0%, #764ba2 74%);
  padding: 15px 35px;
  border-radius: 50px;
  color: #fff;
  box-shadow: 0px 14px 80px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  font-weight: 500;
  justify-content: center;
  text-align: center;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.blog-slider__button:hover {
  transform: translateY(-3px);
  box-shadow: 0px 18px 90px rgba(102, 126, 234, 0.5);
}

@media screen and (max-width: 576px) {
  .blog-slider__button {
    width: 100%;
  }
}

/* Dark Mode */
body.dark .blog-slider,
body.darkmode .blog-slider {
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

body.dark .blog-slider__title,
body.darkmode .blog-slider__title {
  color: #e1e8ed;
}

body.dark .blog-slider__text,
body.darkmode .blog-slider__text {
  color: #b0b0b0;
}

body.dark .blog-slider__code,
body.darkmode .blog-slider__code {
  color: #8899a6;
}
